- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 07 Sep 2017 05:47:47 -0700
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/xhr/pull/152/review/61206169@github.com>
annevk commented on this pull request.
> @@ -526,7 +524,7 @@ methods, when invoked, must run these steps:
<p>Set variables associated with the object as follows:
<ul>
- <li><p>Unset the <a><code>send()</code> flag</a>, <a>stop timeout flag</a>, and
+ <li><p>Unset the <a><code>send()</code> flag</a>, and
No need for a comma anymore.
> @@ -893,8 +893,8 @@ method must run these steps:
<li><p>while {{XMLHttpRequest/timeout!!attribute}} attribute value is not zero.
</ol>
- <li><p>If <var>req</var>'s <a for=request>done flag</a> is unset, then
- <a for=fetch>terminate</a> <a for=/>fetching</a> with reason <i>timeout</i>.
+ <li><p>If <var>req</var>'s <a for=request>done flag</a> is unset, then set the
+ <a>timed out flag</a>, and <a for=fetch>terminate</a> <a for=/>fetching</a>.
Also no need for a comma here.
> @@ -1042,12 +1039,9 @@ method must run these steps:
<p>Let <var>response</var> be the result of
<a for=/>fetching</a> <var>req</var>.
- <p>If the {{XMLHttpRequest/timeout!!attribute}} attribute value is not
- zero, <a for=fetch>terminate</a> this
- <a for=/>fetch</a> if it has not returned
- within the amount of milliseconds from the
- {{XMLHttpRequest/timeout!!attribute}} attribute value with reason
- <i>timeout</i>.
+ <p>If the {{XMLHttpRequest/timeout!!attribute}} attribute value is not zero, set the
then set* if we're touching this
> @@ -1042,12 +1039,9 @@ method must run these steps:
<p>Let <var>response</var> be the result of
<a for=/>fetching</a> <var>req</var>.
- <p>If the {{XMLHttpRequest/timeout!!attribute}} attribute value is not
- zero, <a for=fetch>terminate</a> this
- <a for=/>fetch</a> if it has not returned
- within the amount of milliseconds from the
- {{XMLHttpRequest/timeout!!attribute}} attribute value with reason
- <i>timeout</i>.
+ <p>If the {{XMLHttpRequest/timeout!!attribute}} attribute value is not zero, set the
+ <a>timed out flag</a> and <a for=fetch>terminate</a> <a for=/>fetching</a> if it has not
+ returned within the amount of milliseconds from the {{XMLHttpRequest/timeout!!attribute}}.
I wonder if we should clarify what returned means here. But maybe as a follow-up since that's not your fault.
> @@ -418,7 +416,7 @@ turn causes the <a>use-CORS-preflight flag</a> to be set.)
<p>To <dfn>terminate the request</dfn>,
<a for=fetch>terminate</a> the
<a for=/>fetch</a> algorithm operated by the
-{{XMLHttpRequest}} object with reason <i>fatal</i>.
+{{XMLHttpRequest}} object.
Maybe inline this algorithm altogether at this point given you're removing 1 of the 3 callsites?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/pull/152#pullrequestreview-61206169
Received on Thursday, 7 September 2017 12:49:12 UTC