Re: External node troubles [FF3 RC1]
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
noon wrote:
> Can't use responseXML because it isn't XML, it's HTML, so I get a
> return of null.
But it's well-formed enough to be parsed with DOMParser? Does calling
overridMimeType("application/xml") on the XMLHttpRequest object before making
your send() call make this problem go away?
> So my course of action is instead of attempting to adopt a document
> node, adopt an element.
Right.
> How can I use the DOMParser or the same
> effect without getting a document object? Or can I strip the rest of
> the child nodes from this document object?
The latter. So you can get the doc.documentElement from the DOMParser result
document, and adopt that element.
-Boris