Browser based

How nice, a developer blog! Now I can share the frustrations of doing a browser based editor with the whole world.

Here a piece of code from a debugging session in Internet Explorer:

obj.tagName
"OBJECT"
obj.childNodes[0].tagName
"PARAM"
obj.childNodes[0].parentNode.tagName
undefined
obj.childNodes[0].parentNode.nodeType
11

The PARAM element is a child node of the OBJECT element, but if I ask for the parentNode of the PARAM I get a document fragment!

Modified: August 16th 2007
By: Sjoerd Visscher