limit XML handling of responseText to responseType being the empty string
authorAnne van Kesteren <annevk@opera.com>
Thu, 24 Nov 2011 15:54:16 +0100
changeset 5 02b3d18a4907
parent 4 47d46d5c3845
child 6 236face6f073
limit XML handling of responseText to responseType being the empty string
Overview.html
Overview.src.html
--- a/Overview.html	Thu Nov 24 15:37:13 2011 +0100
+++ b/Overview.html	Thu Nov 24 15:54:16 2011 +0100
@@ -2288,12 +2288,20 @@
 
    <li><p>Let <var>mime</var> be the <a href="#final-mime-type">final MIME type</a>.</li>
 
-   <li><p>If <var>charset</var> is null and <var>mime</var> is either null,
-   <code>text/xml</code>, <code>application/xml</code> or ends in
-   <code title="">+xml</code>, use the rules set forth in the XML
-   specifications to determine the character encoding. Let
-   <var>charset</var> be the determined character encoding.
-   <a href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
+   <li>
+    <p>If <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> is
+    the empty string, <var>charset</var> is null, and <var>mime</var> is
+    either null, <code>text/xml</code>, <code>application/xml</code> or ends
+    in <code title="">+xml</code>, use the rules set forth in the XML
+    specifications to determine the character encoding. Let
+    <var>charset</var> be the determined character encoding.
+    <a href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
+
+    <p class="note">This is restricted to
+    <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> being
+    the empty string to keep the non-legacy
+    <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> value
+    "<code title="">text</code>" simple.
 
    <li>
     <p>If <var>charset</var> is null then, for each of the rows in the
--- a/Overview.src.html	Thu Nov 24 15:37:13 2011 +0100
+++ b/Overview.src.html	Thu Nov 24 15:54:16 2011 +0100
@@ -2247,12 +2247,20 @@
 
    <li><p>Let <var>mime</var> be the <span>final MIME type</span>.</p></li>
 
-   <li><p>If <var>charset</var> is null and <var>mime</var> is either null,
-   <code>text/xml</code>, <code>application/xml</code> or ends in
-   <code title>+xml</code>, use the rules set forth in the XML
-   specifications to determine the character encoding. Let
-   <var>charset</var> be the determined character encoding.
-   <span data-anolis-ref>XML</span> <span data-anolis-ref>XMLNS</span>
+   <li>
+    <p>If <code title=dom-XMLHttpRequest-responseType>responseType</code> is
+    the empty string, <var>charset</var> is null, and <var>mime</var> is
+    either null, <code>text/xml</code>, <code>application/xml</code> or ends
+    in <code title>+xml</code>, use the rules set forth in the XML
+    specifications to determine the character encoding. Let
+    <var>charset</var> be the determined character encoding.
+    <span data-anolis-ref>XML</span> <span data-anolis-ref>XMLNS</span>
+
+    <p class=note>This is restricted to
+    <code title=dom-XMLHttpRequest-responseType>responseType</code> being
+    the empty string to keep the non-legacy
+    <code title=dom-XMLHttpRequest-responseType>responseType</code> value
+    "<code title>text</code>" simple.
 
    <li>
     <p>If <var>charset</var> is null then, for each of the rows in the