Skip to content

Commit

Permalink
Editorial: rename end-of-file to end-of-body
Browse files Browse the repository at this point in the history
See
whatwg/fetch@483ffd8
3c0d395 for rationale.
  • Loading branch information
annevk committed Jul 27, 2016
1 parent 1a75845 commit e8b02e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="https://whatwg.org/"><img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-xhr.svg" width="100"></a>
<h1 id="xmlhttprequest-ls">XMLHttpRequest</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-27-june-2016">Living Standard — Last Updated 27 June 2016</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-27-july-2016">Living Standard — Last Updated 27 July 2016</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -992,7 +992,7 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s
<!-- upload complete flag can never be set here I hope -->
</ol>

<p>To <a class="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#process-request-end-of-file">process request end-of-file</a> for
<p>To <a class="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#process-request-end-of-body">process request end-of-body</a> for
<var title="">request</var>, run these subsubsteps:

<ol>
Expand Down Expand Up @@ -1049,7 +1049,7 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s

<li><p>If <var>response</var>'s
<a class="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-response-body" title="concept-response-body">body</a> is null,
then run <a href="#handle-response-end-of-file">handle response end-of-file</a> and return.
then run <a href="#handle-response-end-of-body">handle response end-of-body</a> and return.

<li>
<p>Let <var>reader</var> be the result of
Expand Down Expand Up @@ -1088,7 +1088,7 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s
</ol>

<p>When <var>read</var> is fulfilled with an object whose <code>done</code> property is true,
run <a href="#handle-response-end-of-file">handle response end-of-file</a> for <var>response</var>.
run <a href="#handle-response-end-of-body">handle response end-of-body</a> for <var>response</var>.

<p>When <var>read</var> is rejected with an exception, run <a href="#handle-errors">handle errors</a> for
<var>response</var>.
Expand All @@ -1112,7 +1112,7 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s

<li><p>If <var>response</var>'s
<a class="external" data-anolis-spec="fetch" href="https://fetch.spec.whatwg.org/#concept-response-body" title="concept-response-body">body</a> is null,
then run <a href="#handle-response-end-of-file">handle response end-of-file</a> and return.
then run <a href="#handle-response-end-of-body">handle response end-of-body</a> and return.

<li>
<p>Let <var>reader</var> be the result of
Expand All @@ -1133,12 +1133,12 @@ <h4 id="the-send()-method"><span class="secno">4.5.6 </span>The <code title="">s
<li><p>If <var>promise</var> is fulfilled with <var>bytes</var>, then append <var>bytes</var>
to <a href="#received-bytes">received bytes</a>.

<li><p>Run <a href="#handle-response-end-of-file">handle response end-of-file</a> for <var title="">response</var>.
<li><p>Run <a href="#handle-response-end-of-body">handle response end-of-body</a> for <var title="">response</var>.
</ol>
</ol>

<p>To <dfn id="handle-response-end-of-file">handle response end-of-file</dfn> for <var title="">response</var>, run these
steps:
<p id="handle-response-end-of-file">To <dfn id="handle-response-end-of-body">handle response end-of-body</dfn> for
<var title="">response</var>, run these steps:

<ol>
<li><p>If the <a href="#synchronous-flag">synchronous flag</a> is set, set <a href="#response">response</a> to
Expand Down
14 changes: 7 additions & 7 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ <h4>The <code title>send()</code> method</h4>
<!-- upload complete flag can never be set here I hope -->
</ol>

<p>To <span data-anolis-spec=fetch>process request end-of-file</span> for
<p>To <span data-anolis-spec=fetch>process request end-of-body</span> for
<var title>request</var>, run these subsubsteps:

<ol>
Expand Down Expand Up @@ -1001,7 +1001,7 @@ <h4>The <code title>send()</code> method</h4>

<li><p>If <var>response</var>'s
<span data-anolis-spec=fetch title=concept-response-body>body</span> is null,
then run <span>handle response end-of-file</span> and return.
then run <span>handle response end-of-body</span> and return.

<li>
<p>Let <var>reader</var> be the result of
Expand Down Expand Up @@ -1040,7 +1040,7 @@ <h4>The <code title>send()</code> method</h4>
</ol>

<p>When <var>read</var> is fulfilled with an object whose <code>done</code> property is true,
run <span>handle response end-of-file</span> for <var>response</var>.
run <span>handle response end-of-body</span> for <var>response</var>.

<p>When <var>read</var> is rejected with an exception, run <span>handle errors</span> for
<var>response</var>.
Expand All @@ -1064,7 +1064,7 @@ <h4>The <code title>send()</code> method</h4>

<li><p>If <var>response</var>'s
<span data-anolis-spec=fetch title=concept-response-body>body</span> is null,
then run <span>handle response end-of-file</span> and return.
then run <span>handle response end-of-body</span> and return.

<li>
<p>Let <var>reader</var> be the result of
Expand All @@ -1085,12 +1085,12 @@ <h4>The <code title>send()</code> method</h4>
<li><p>If <var>promise</var> is fulfilled with <var>bytes</var>, then append <var>bytes</var>
to <span>received bytes</span>.

<li><p>Run <span>handle response end-of-file</span> for <var title>response</var>.
<li><p>Run <span>handle response end-of-body</span> for <var title>response</var>.
</ol>
</ol>

<p>To <dfn>handle response end-of-file</dfn> for <var title>response</var>, run these
steps:
<p id=handle-response-end-of-file>To <dfn>handle response end-of-body</dfn> for
<var title>response</var>, run these steps:

<ol>
<li><p>If the <span>synchronous flag</span> is set, set <span>response</span> to
Expand Down

0 comments on commit e8b02e0

Please sign in to comment.