Merge WHATWG change:Reset all response entity bodies appropriately. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23102
authorJungkee Song <jungkee.song@samsung.com>
Wed, 23 Oct 2013 11:43:26 +0900
changeset 129 8d92671a852f
parent 128 177eb6467fa1
child 130 d7b20b946622
Merge WHATWG change:Reset all response entity bodies appropriately. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23102
Overview.html
Overview.src.html
--- a/Overview.html	Wed Oct 23 11:25:18 2013 +0900
+++ b/Overview.html	Wed Oct 23 11:43:26 2013 +0900
@@ -892,6 +892,11 @@
    <li><p>Set <a href="#author-request-headers">author request headers</a> to the empty list.
    <li><p>Unset the <a href="#send-flag"><code>send()</code> flag</a>.
    <li><p>Set <a href="#response-entity-body">response entity body</a> to null.
+   <li><p>Set <a href="#arraybuffer-response-entity-body">arraybuffer response entity body</a> to null.
+   <li><p>Set <a href="#blob-response-entity-body">blob response entity body</a> to null.
+   <li><p>Set <a href="#document-response-entity-body">document response entity body</a> to null.
+   <li><p>Set <a href="#json-response-entity-body">JSON response entity body</a> to null.
+   <li><p>Set <a href="#text-response-entity-body">text response entity body</a> to null.
   </ul>
 
  <li>
@@ -2135,16 +2140,17 @@
   <a href="#response-entity-body">response entity body</a> is null.</p>
 
   <p class="note">The <a href="#response-entity-body">response entity body</a> is updated as part
-  of the <code title="dom-XMLHttpRequest-send"><a href="#dom-xmlhttprequest-send">send()</a></code> algorithm.</p>
+  of the <code title="dom-XMLHttpRequest-send"><a href="#dom-xmlhttprequest-send">send()</a></code> method and reset by the
+  <code title="dom-XMLHttpRequest-open"><a href="#dom-xmlhttprequest-open">open()</a></code> method.</p>
 
   <hr>
 
   <p>The
   <dfn id="arraybuffer-response-entity-body">arraybuffer response entity body</dfn>
-  is an <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#ARRAYBUFFER">ArrayBuffer</a></code> representing
-  the <a href="#response-entity-body">response entity body</a>. If the
-  <a href="#arraybuffer-response-entity-body">arraybuffer response entity body</a> has no value assigned to it
-  let it be the return value of the following algorithm:</p>
+  is either an <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#ARRAYBUFFER">ArrayBuffer</a></code> representing
+  the <a href="#response-entity-body">response entity body</a> or null. If the
+  <a href="#arraybuffer-response-entity-body">arraybuffer response entity body</a> is null, let it be the return value of the
+  following algorithm:</p>
 
   <ol>
    <li><p>If the <a href="#response-entity-body">response entity body</a> is null, return an empty
@@ -2156,10 +2162,10 @@
 
 
   <p>The
-  <dfn id="blob-response-entity-body">blob response entity body</dfn> is a
-  <code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code> representing the <a href="#response-entity-body">response entity body</a>. If
-  the <a href="#blob-response-entity-body">blob response entity body</a> has no value assigned to it let
-  it be the return value of the following algorithm:</p>
+  <dfn id="blob-response-entity-body">blob response entity body</dfn> is either a
+  <code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code> representing the
+  <a href="#response-entity-body">response entity body</a> or null. If the <a href="#blob-response-entity-body">blob response entity body</a>
+  is null, let it be the return value of the following algorithm:</p>
 
   <ol>
    <li><p>If the <a href="#response-entity-body">response entity body</a> is null, return an empty
@@ -2173,11 +2179,10 @@
 
   <p>The
   <dfn id="document-response-entity-body">document response entity body</dfn>
-  is either a
-  <a class="external" href="http://dev.w3.org/2006/webapi/DOM4Core/#concept-document" title="concept-document">document</a>
+  is either a <a class="external" href="http://dev.w3.org/2006/webapi/DOM4Core/#concept-document" title="concept-document">document</a>
   representing the <a href="#response-entity-body">response entity body</a> or null. If the
-  <a href="#document-response-entity-body">document response entity body</a> has no value assigned to it let
-  it be the return value of the following algorithm:</p>
+  <a href="#document-response-entity-body">document response entity body</a> is null, let it be the return value of the
+  following algorithm:</p>
 
   <ol>
    <li><p>If the <a href="#response-entity-body">response entity body</a> is null, return null.</li>
@@ -2260,9 +2265,9 @@
    <li><p>Return <var title="">document</var>.
   </ol>
 
-<p>The <dfn id="json-response-entity-body">JSON response entity body</dfn> is an ECMAScript value
-representing the <a href="#response-entity-body">response entity body</a>. The
-<a href="#json-response-entity-body">JSON response entity body</a> is the return value of the following
+<p>The <dfn id="json-response-entity-body">JSON response entity body</dfn> is either a JavaScript value
+representing the <a href="#response-entity-body">response entity body</a>. If the
+<a href="#json-response-entity-body">JSON response entity body</a> is null, let it be return value of the following
 algorithm:</p>
 
 <ol>
@@ -2277,9 +2282,9 @@
 </ol>
 
 
-  <p>The <dfn id="text-response-entity-body">text response entity body</dfn>
-  is a string representing the <a href="#response-entity-body">response entity body</a>. The
-  <a href="#text-response-entity-body">text response entity body</a> is the return value of the
+  <p>The <dfn id="text-response-entity-body">text response entity body</dfn> is either a
+  string representing the <a href="#response-entity-body">response entity body</a> or null. If the
+  <a href="#text-response-entity-body">text response entity body</a> is null, let it be the return value of the 
   following algorithm:</p>
 
   <ol>
--- a/Overview.src.html	Wed Oct 23 11:25:18 2013 +0900
+++ b/Overview.src.html	Wed Oct 23 11:43:26 2013 +0900
@@ -901,6 +901,11 @@
    <li><p>Set <span>author request headers</span> to the empty list.
    <li><p>Unset the <span><code>send()</code> flag</span>.
    <li><p>Set <span>response entity body</span> to null.
+   <li><p>Set <span>arraybuffer response entity body</span> to null.
+   <li><p>Set <span>blob response entity body</span> to null.
+   <li><p>Set <span>document response entity body</span> to null.
+   <li><p>Set <span>JSON response entity body</span> to null.
+   <li><p>Set <span>text response entity body</span> to null.
   </ul>
 
  <li>
@@ -2144,16 +2149,17 @@
   <span>response entity body</span> is null.</p>
 
   <p class=note>The <span>response entity body</span> is updated as part
-  of the <code title="dom-XMLHttpRequest-send">send()</code> algorithm.</p>
+  of the <code title=dom-XMLHttpRequest-send>send()</code> method and reset by the
+  <code title=dom-XMLHttpRequest-open>open()</code> method.</p>
 
   <hr>
 
   <p>The
   <dfn id="arraybuffer-response-entity-body">arraybuffer response entity body</dfn>
-  is an <code data-anolis-spec=typedarray>ArrayBuffer</code> representing
-  the <span>response entity body</span>. If the
-  <span>arraybuffer response entity body</span> has no value assigned to it
-  let it be the return value of the following algorithm:</p>
+  is either an <code data-anolis-spec=typedarray>ArrayBuffer</code> representing
+  the <span>response entity body</span> or null. If the
+  <span>arraybuffer response entity body</span> is null, let it be the return value of the
+  following algorithm:</p>
 
   <ol>
    <li><p>If the <span>response entity body</span> is null, return an empty
@@ -2165,10 +2171,10 @@
 
 
   <p>The
-  <dfn id="blob-response-entity-body">blob response entity body</dfn> is a
-  <code data-anolis-spec=fileapi>Blob</code> representing the <span>response entity body</span>. If
-  the <span>blob response entity body</span> has no value assigned to it let
-  it be the return value of the following algorithm:</p>
+  <dfn id="blob-response-entity-body">blob response entity body</dfn> is either a
+  <code data-anolis-spec=fileapi>Blob</code> representing the
+  <span>response entity body</span> or null. If the <span>blob response entity body</span>
+  is null, let it be the return value of the following algorithm:</p>
 
   <ol>
    <li><p>If the <span>response entity body</span> is null, return an empty
@@ -2182,11 +2188,10 @@
 
   <p>The
   <dfn id="document-response-entity-body">document response entity body</dfn>
-  is either a
-  <span data-anolis-spec=dom title=concept-document>document</span>
+  is either a <span data-anolis-spec=dom title=concept-document>document</span>
   representing the <span>response entity body</span> or null. If the
-  <span>document response entity body</span> has no value assigned to it let
-  it be the return value of the following algorithm:</p>
+  <span>document response entity body</span> is null, let it be the return value of the
+  following algorithm:</p>
 
   <ol>
    <li><p>If the <span>response entity body</span> is null, return null.</p></li>
@@ -2269,9 +2274,9 @@
    <li><p>Return <var title>document</var>.
   </ol>
 
-<p>The <dfn>JSON response entity body</dfn> is an ECMAScript value
-representing the <span>response entity body</span>. The
-<span>JSON response entity body</span> is the return value of the following
+<p>The <dfn>JSON response entity body</dfn> is either a JavaScript value
+representing the <span>response entity body</span>. If the
+<span>JSON response entity body</span> is null, let it be return value of the following
 algorithm:</p>
 
 <ol>
@@ -2286,9 +2291,9 @@
 </ol>
 
 
-  <p>The <dfn id="text-response-entity-body">text response entity body</dfn>
-  is a string representing the <span>response entity body</span>. The
-  <span>text response entity body</span> is the return value of the
+  <p>The <dfn id="text-response-entity-body">text response entity body</dfn> is either a
+  string representing the <span>response entity body</span> or null. If the
+  <span>text response entity body</span> is null, let it be the return value of the 
   following algorithm:</p>
 
   <ol>