[Bug 25028] New: Should XMLHttpRequest.responseXML return an XMLDocument if response has xml MIME type?

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

            Bug ID: 25028
           Summary: Should XMLHttpRequest.responseXML return an
                    XMLDocument if response has xml MIME type?
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XHR
          Assignee: annevk@annevk.nl
          Reporter: dchris@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org

http://xhr.spec.whatwg.org/#response-entity-body-0

[[
Otherwise, let document be a document that represents the result of parsing the
response entity body following the rules set forth in the XML specifications.
If that fails (unsupported character encoding, namespace well-formedness error,
etc.), return null. [XML] [XMLNS]
]]

Should this (step 5) return an XMLDocument instead of a Document?

See for example the DOMParsing specification, which states that we should
return an XMLDocument if the MIME type is an XML one:
http://domparsing.spec.whatwg.org/#dom-domparser-parsefromstring

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 12 March 2014 21:47:36 UTC