Skip to content

Commit

Permalink
Only set state to unsent in abort() when done
Browse files Browse the repository at this point in the history
Fixes #54.
  • Loading branch information
annevk committed Mar 25, 2016
1 parent 243bb82 commit 36e8b3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 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-22-march-2016">Living Standard — Last Updated 22 March 2016</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-25-march-2016">Living Standard — Last Updated 25 March 2016</h2>

<dl>
<dt>Participate:
Expand Down Expand Up @@ -1302,8 +1302,8 @@ <h4 id="the-abort()-method"><span class="secno">4.5.7 </span>The <code title="">
<dd>Cancels any network activity.
</dl>

<p>The <dfn id="dom-xmlhttprequest-abort" title="dom-XMLHttpRequest-abort"><code>abort()</code></dfn> method must run
these steps:
<p>The <dfn id="dom-xmlhttprequest-abort" title="dom-XMLHttpRequest-abort"><code>abort()</code></dfn> method, when invoked, must
run these steps:

<ol>
<li><p><a href="#terminate-the-request">Terminate the request</a>.
Expand All @@ -1314,7 +1314,8 @@ <h4 id="the-abort()-method"><span class="secno">4.5.7 </span>The <code title="">
<a href="#request-error-steps">request error steps</a> for event <a href="#event-xhr-abort"><code title="event-xhr-abort">abort</code></a>.

<li>
<p>Set <a href="#concept-xmlhttprequest-state" title="concept-XMLHttpRequest-state">state</a> to <i title="">unsent</i>.
<p>If <a href="#concept-xmlhttprequest-state" title="concept-XMLHttpRequest-state">state</a> is <i>done</i>, set
<a href="#concept-xmlhttprequest-state" title="concept-XMLHttpRequest-state">state</a> to <i>unsent</i>.

<p class="note">No <a href="#event-xhr-readystatechange"><code title="event-xhr-readystatechange">readystatechange</code></a> event
is dispatched.
Expand Down
7 changes: 4 additions & 3 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1254,8 +1254,8 @@ <h4>The <code title>abort()</code> method</h4>
<dd>Cancels any network activity.
</dl>

<p>The <dfn title="dom-XMLHttpRequest-abort"><code>abort()</code></dfn> method must run
these steps:
<p>The <dfn title="dom-XMLHttpRequest-abort"><code>abort()</code></dfn> method, when invoked, must
run these steps:

<ol>
<li><p><span>Terminate the request</span>.
Expand All @@ -1266,7 +1266,8 @@ <h4>The <code title>abort()</code> method</h4>
<span>request error steps</span> for event <code title=event-xhr-abort>abort</code>.

<li>
<p>Set <span title=concept-XMLHttpRequest-state>state</span> to <i title>unsent</i>.
<p>If <span title=concept-XMLHttpRequest-state>state</span> is <i>done</i>, set
<span title=concept-XMLHttpRequest-state>state</span> to <i>unsent</i>.

<p class=note>No <code title="event-xhr-readystatechange">readystatechange</code> event
is dispatched.
Expand Down

0 comments on commit 36e8b3c

Please sign in to comment.