Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed May 4, 2023
1 parent 4991ab7 commit d9489ee
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,7 @@ has the following <a for=struct>items</a>:
<dt><dfn export for="deferred fetch record">request</dfn>
<dd>A <a for=/>request</a>

<dt><dfn export for="deferred fetch record">background timeout</dfn> (default null)
<dt><dfn export for="deferred fetch record">inactive timeout</dfn> (default null)
<dd>Null or a <a>duration</a>

<dt><dfn export for="deferred fetch record">pending steps</dfn> (default null)
Expand Down Expand Up @@ -2765,12 +2765,12 @@ has the following <a for=struct>items</a>:
<li>
<p><a for=list>For each</a> <a>deferred fetch record</a> <var>deferredRecord</var> in
<var>fetchGroup</var>'s <a for="fetch group">deferred fetch records</a> whose
<a for="deferred fetch record">background timeout</a> is not null: set <var>deferredRecord</var>'s
<a for="deferred fetch record">inactive timeout</a> is not null: set <var>deferredRecord</var>'s
<a for="deferred fetch record">pending steps</a> to running the following steps <a>in parallel</a>:

<ol>
<li><p>Wait until <var>deferredRecord</var>'s
<a for="deferred fetch record">background timeout</a> have passed.
<a for="deferred fetch record">inactive timeout</a> have passed.

<li>
<p><a>Queue a fetch task</a> to run the following steps with
Expand Down Expand Up @@ -8587,7 +8587,7 @@ when a <a>fetch group</a> is <a for="fetch group">terminated</a>, or after a tim
<div algorithm="request-a-deferred-fetch">
<p>To <dfn>request a deferred fetch</dfn> given a
<a for=/>request</a> <var>request</var> and a null-or-{{DOMHighResTimeStamp}}
<var>backgroundTimeout</var> (default null):
<var>inactiveTimeout</var> (default null):

<ol>
<li><p>Assert: <var>request</var>'s <a for=request>client</a> is an
Expand Down Expand Up @@ -8623,8 +8623,8 @@ when a <a>fetch group</a> is <a for="fetch group">terminated</a>, or after a tim
<li><p>Let <var>deferredRecord</var> be a new <a>deferred fetch record</a> whose
<a for="deferred fetch record">request</a> is <var>request</var>.

<li><p>Set <var>deferredRecord</var>'s <a for="deferred fetch record">background timeout</a> to
<var>backgroundTimeout</var>.
<li><p>Set <var>deferredRecord</var>'s <a for="deferred fetch record">inactive timeout</a> to
<var>inactiveTimeout</var>.

<li><p><a for=list>Append</a> <var>deferredRecord</var> to <var>request</var>'s
<a for=request>client</a>'s <a for=fetch>fetch group</a>'s
Expand All @@ -8639,7 +8639,7 @@ when a <a>fetch group</a> is <a for="fetch group">terminated</a>, or after a tim
<pre class=idl>

dictionary DeferredRequestInit : RequestInit {
DOMHighResTimeStamp? backgroundTimeout;
DOMHighResTimeStamp? inactiveTimeout;
};

partial interface mixin WindowOrWorkerGlobalScope {
Expand All @@ -8665,16 +8665,16 @@ method steps are:

<li><p>Let <var>request</var> be <var>requestObject</var>'s <a for=Request>request</a>.

<li><p>Let <var>backgroundTimeout</var> be null.
<li><p>Let <var>inactiveTimeout</var> be null.

<li><p>If <var>init</var> is given and <var>init</var>["<code>backgroundTimeout</code>"]
<a for=map>exists</a> then set <var>backgroundTimeout</var> to
<var>init</var>["<code>backgroundTimeout</code>"].
<li><p>If <var>init</var> is given and <var>init</var>["<code>inactiveTimeout</code>"]
<a for=map>exists</a> then set <var>inactiveTimeout</var> to
<var>init</var>["<code>inactiveTimeout</code>"].

<li><p>If <var>backgroundTimeout</var> is not a {{DOMHighResTimeStamp}} then throw a {{TypeError}}.
<li><p>If <var>inactiveTimeout</var> is not a {{DOMHighResTimeStamp}} then throw a {{TypeError}}.

<li><p>Let <var>deferredRecord</var> be the result of calling
<a>request a deferred fetch</a> given <var>request</var> and <var>backgroundTimeout</var>. If that
<a>request a deferred fetch</a> given <var>request</var> and <var>inactiveTimeout</var>. If that
threw an exception, <a for=/>reject</a> <var>promise</var> with that exception and return
<var>promise</var>.

Expand Down

0 comments on commit d9489ee

Please sign in to comment.