Element.insert, Prototype and named anchors
This was a strange one.
HTML:
<a name="questions"> <div class="questions"> </div>
JS:
Element.insert("questions", { bottom : "<div>Test</div>" })
With that setup, IE compains and says "Invalid source HTML for this operation". It turns out that prototype was trying to put the div into the a tag. I guess I can see how it happened, but I sure didn't expect it.
Anyway I removed the a tag completely and everything works fine. Weird.