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 502b3d18a4907
parent 4 47d46d5c3845
child 6 236face6f073
limit XML handling of responseText to responseType being the empty string
Overview.html
Overview.src.html
     1.1 --- a/Overview.html	Thu Nov 24 15:37:13 2011 +0100
     1.2 +++ b/Overview.html	Thu Nov 24 15:54:16 2011 +0100
     1.3 @@ -2288,12 +2288,20 @@
     1.4  
     1.5     <li><p>Let <var>mime</var> be the <a href="#final-mime-type">final MIME type</a>.</li>
     1.6  
     1.7 -   <li><p>If <var>charset</var> is null and <var>mime</var> is either null,
     1.8 -   <code>text/xml</code>, <code>application/xml</code> or ends in
     1.9 -   <code title="">+xml</code>, use the rules set forth in the XML
    1.10 -   specifications to determine the character encoding. Let
    1.11 -   <var>charset</var> be the determined character encoding.
    1.12 -   <a href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
    1.13 +   <li>
    1.14 +    <p>If <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> is
    1.15 +    the empty string, <var>charset</var> is null, and <var>mime</var> is
    1.16 +    either null, <code>text/xml</code>, <code>application/xml</code> or ends
    1.17 +    in <code title="">+xml</code>, use the rules set forth in the XML
    1.18 +    specifications to determine the character encoding. Let
    1.19 +    <var>charset</var> be the determined character encoding.
    1.20 +    <a href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
    1.21 +
    1.22 +    <p class="note">This is restricted to
    1.23 +    <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> being
    1.24 +    the empty string to keep the non-legacy
    1.25 +    <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> value
    1.26 +    "<code title="">text</code>" simple.
    1.27  
    1.28     <li>
    1.29      <p>If <var>charset</var> is null then, for each of the rows in the
     2.1 --- a/Overview.src.html	Thu Nov 24 15:37:13 2011 +0100
     2.2 +++ b/Overview.src.html	Thu Nov 24 15:54:16 2011 +0100
     2.3 @@ -2247,12 +2247,20 @@
     2.4  
     2.5     <li><p>Let <var>mime</var> be the <span>final MIME type</span>.</p></li>
     2.6  
     2.7 -   <li><p>If <var>charset</var> is null and <var>mime</var> is either null,
     2.8 -   <code>text/xml</code>, <code>application/xml</code> or ends in
     2.9 -   <code title>+xml</code>, use the rules set forth in the XML
    2.10 -   specifications to determine the character encoding. Let
    2.11 -   <var>charset</var> be the determined character encoding.
    2.12 -   <span data-anolis-ref>XML</span> <span data-anolis-ref>XMLNS</span>
    2.13 +   <li>
    2.14 +    <p>If <code title=dom-XMLHttpRequest-responseType>responseType</code> is
    2.15 +    the empty string, <var>charset</var> is null, and <var>mime</var> is
    2.16 +    either null, <code>text/xml</code>, <code>application/xml</code> or ends
    2.17 +    in <code title>+xml</code>, use the rules set forth in the XML
    2.18 +    specifications to determine the character encoding. Let
    2.19 +    <var>charset</var> be the determined character encoding.
    2.20 +    <span data-anolis-ref>XML</span> <span data-anolis-ref>XMLNS</span>
    2.21 +
    2.22 +    <p class=note>This is restricted to
    2.23 +    <code title=dom-XMLHttpRequest-responseType>responseType</code> being
    2.24 +    the empty string to keep the non-legacy
    2.25 +    <code title=dom-XMLHttpRequest-responseType>responseType</code> value
    2.26 +    "<code title>text</code>" simple.
    2.27  
    2.28     <li>
    2.29      <p>If <var>charset</var> is null then, for each of the rows in the