[Bug 21945] Does responseXML ever return an XMLDocument

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21945

Elliott Sprehn <esprehn@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |esprehn@gmail.com

--- Comment #1 from Elliott Sprehn <esprehn@gmail.com> ---
I think the text in the spec for XMLDocument might explain this:

http://dom.spec.whatwg.org/#xmldocument

"""A document is assumed to be an XML document unless it is flagged as being an
HTML document. Whether a document is an HTML document or an XML document
affects the behavior of certain APIs."""

So createDocument() returns an XMLDocument if you pass no arguments and an
HTMLDocument if you pass the HTML namespace.

So you know createElement will return an HTMLDivElement if responseXML
instanceof XMLDocument is false.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 6 May 2013 22:33:06 UTC