Re: html dom question (no such interface supported) ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"rvj" <rvj@xxxxxxxxxxxxxx> wrote in message
news:ORHFQmVdHHA.4012@xxxxxxxxxxxxxxxxxxxxxxx

I am attempting to append an html namespace qualified node "selected" from
an xml file to a
dom created via the write method

// define document element node

content="<html></html>"
doc=window.frames[0].document

doc.open();
doc.write(content)
doc.close();

this works fine but when I attempt to append the object I get a script
error
indicating "No such interface supported"

doc.documentElement.appendChild(appendobject)

the object was selected using selectNode method from an
xml file containg tags

<html:body>
<html:div>
<snip/>
</html:div>
</html:body>

if I display the selected objects' tagName it correctly displays
"html:body"
however if I simply display the object then nothing is indicated

results=xmldom.selectNodes(xpath)
appendobject=results[x].childNodes[0]

alert(appendobject.tagName+"="+appendobject) // "html:body="

it appears that the interface referred to is the object which appears to
have no assumed reference. ( in Firefox it assumes the object is an
HTMLBodyElement )

a) does IE support appending namespace qualified nodes?
b) if so what do I do to let IE recoginise that the object is an
HTMLBodyElement?


XML DOM and HTML DOM are two entirely different things in IE. You cannot
append a node from XML into the HTML dom in IE


.



Relevant Pages