Re: html dom question (no such interface supported) ?
- From: "Anthony Jones" <Ant@xxxxxxxxxxxxxxxx>
- Date: Mon, 2 Apr 2007 21:41:58 +0100
"rvj" <rvj@xxxxxxxxxxxxxx> wrote in message
news:ORHFQmVdHHA.4012@xxxxxxxxxxxxxxxxxxxxxxx
error
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
indicating "No such interface supported""html:body"
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
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
.
- Follow-Ups:
- References:
- Prev by Date: html dom question (no such interface supported) ?
- Next by Date: Re: html dom question (no such interface supported) ?
- Previous by thread: html dom question (no such interface supported) ?
- Next by thread: Re: html dom question (no such interface supported) ?
- Index(es):
Relevant Pages
|