<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25028</bug_id>
          
          <creation_ts>2014-03-12 21:47:33 +0000</creation_ts>
          <short_desc>Should XMLHttpRequest.responseXML return an XMLDocument if response has xml MIME type?</short_desc>
          <delta_ts>2014-05-20 14:41:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>XHR</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22960</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">chris</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>erik.arvidsson</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102267</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">chris</who>
    <bug_when>2014-03-12 21:47:33 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102312</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-03-13 18:40:22 +0000</bug_when>
    <thetext>(In reply to Christophe Dumez from comment #0)
&gt; See for example the DOMParsing specification, which states that we should
&gt; return an XMLDocument if the MIME type is an XML one:
&gt; http://domparsing.spec.whatwg.org/#dom-domparser-parsefromstring

Fixed: https://github.com/whatwg/domparsing/commit/eb55d5c2a8171cb765b063cac138dd291c00b37c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106432</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-20 09:57:36 +0000</bug_when>
    <thetext>I&apos;m going to mark this as a duplicate. We need to settle once and for all what classes we want to use where for all documents. Doing this on a per-instance basis is not great.

*** This bug has been marked as a duplicate of bug 22960 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106435</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">chris</who>
    <bug_when>2014-05-20 12:08:34 +0000</bug_when>
    <thetext>For the record, Blink was updated accordingly in:
https://src.chromium.org/viewvc/blink?view=rev&amp;revision=169080</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106442</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-20 14:41:16 +0000</bug_when>
    <thetext>*** Bug 21945 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>