W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2014

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

From: <bugzilla@jessica.w3.org>
Date: Wed, 12 Mar 2014 21:47:33 +0000
To: public-webapps@w3.org
Message-ID: <bug-25028-2927@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:22 UTC