I've got this example page where I'm trying to add a child to a "object" tag.
To do it I need to get all the "object > params" in the page. The page I link you works like charm in all the browser except for IE6 (haven't cheked the other IEs yet). With IE6 I can't catch the "params" since document.getElementsByTagName('param') returns an empty object, but this doesn't happen with the "embed"! It won't work with document.getElementsByTagName('object') as well
Thanks to Jeff I found out that removing the <embed> inside the <object> the <param> are counted!
So I guess IE6 wants just <param> inside a <object> tag.
Now the problem is that I don't have control over the pages where my code runs into... so what can I do??
I've tried removing the <embed> child and then call getElementsByTagName("param") but it doesn't like it... it seems that if <object> has other things out of <param> tags it's not loaded into DOM
It seems that <object> tags (as for instance <a> tags) if not properly written - don't get initialized as elements of the corresponding type. [especially not if the main property/attribute is not present or for some other reason has incorrect syntax or some other coding error.
For instance one might think/expect that <a title="the title" id="theid">this would appear like a hyperlink/ancor element</a> in the document, but it doesn't, - because but it isn't!