Bug in prototype 1.4.0

This page uses the prototype library to insert new cells into table rows. It works in Opera and Gecko based browers such as firefox but not IE or Konqueror.

Table without tbody, thead, or tfoot

Table with Tbody

Table with thead

Table with tfoot

My Code

This is the code that runs in the loading of this page. It grabs the table row and uses the Insertion object from the prototype library. Note that the use of document.getElementById() and the use of $(). Niether works in IE.

Prototype Code

This is the code that blows up in the prototype library when running in IE. (Line 1031) I don't know anything about the constructs being used so I cant fix it right now. Perhaps someone else knows more.