Skip to content

Commit

Permalink
Fix the warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sefeng211 committed Jun 12, 2024
1 parent 5818ed4 commit 0908c4b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ urlPrefix:https://w3c.github.io/hr-time/#;spec:hr-time
urlPrefix:https://tc39.es/ecma262/#;type:dfn;spec:ecma-262
url:realm;text:realm
url:sec-list-and-record-specification-type;text:Record
url:current-realm;text:current realm
url:sec-parsetext;text:ParseText
url:prod-Script;text:Script
url:script-record;text:Script Record
Expand Down Expand Up @@ -3392,7 +3393,7 @@ and a <a for=/>response</a> <var>response</var>, is to run these steps:

<div algorithm>
<p>To <dfn>extract content-range values</dfn>, given a <a for=/>response</a> <var>response</var>
run these steps:<p>
run these steps:</p>

<ol>
<li><p>If <var>response</var>’s <a for=response>header list</a> <a for="header list">does not contain</a> `<code>Content-Range</code>`, then return failure.
Expand Down Expand Up @@ -3497,7 +3498,7 @@ run these steps:</p>
<li><p>Append <var>chunkBytes</var> to <var>bytes</var>.

<li>
<p>If <var>bytes</var>'s <a for="byte sequencue">length</a> is greater than 1024, then:
<p>If <var>bytes</var>'s <a for="byte sequence">length</a> is greater than 1024, then:

<ol>
<li><p>Truncate <var>bytes</var> from the end so that it only contains 1024 bytes.
Expand All @@ -3517,7 +3518,7 @@ run these steps:</p>

<li><p>Set <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a> to the result
of <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a>
<a for=TransformStream>piped through</a> <var>transformStream</var>.
<a for=ReadableStream>piped through</a> <var>transformStream</var>.
</ol>

<li><p>Wait until <var>first1024Bytes</var> is non-null or <var>response</var>'s
Expand All @@ -3532,8 +3533,8 @@ run these steps:</p>
<hr>

<div algorithm>
<p>To <dfn>determine if response is JavaScript and not JSON</dfn> given a <a for=/>response</a>
<var>response</var>, run these steps:</p>
<p>To <dfn>determine if response is JavaScript and not JSON</dfn>, given a <a for=/>request</a> <var>request</var>,
a <a for=/>response</a> <var>response</var>, run these steps:</p>

<ol>
<li><p>Let <var>responseBodyBytes</var> be null.
Expand All @@ -3550,7 +3551,7 @@ run these steps:</p>

<li><p>Let <var>processBodyError</var> be this step: set <var>responseBodyBytes</var> to failure.

<li><p><a>Fully read</a> <var>response</var>'s <a for=response>body</a> given <a>processBody</a>
<li><p><a>Fully read</a> <var>response</var>'s <a for=response>body</a> given <var>processBody</var>
and <var>processBodyError</var>.

<li><p>Wait for <var>responseBodyBytes</var> to be non-null.
Expand All @@ -3569,7 +3570,7 @@ run these steps:</p>
given <var>response</var>'s <a for=response>header list</a>.

<li>
<p>Let <var>encoding</var> be the result of <a>legacy extracting an encoding</a> given
<p>Let <var>encoding</var> be the result of <a>legacy extract an encoding</a> given
<var>potentialMIMETypeForEncoding</var> and <var>request</var>'s
<a for=request>no-cors JavaScript fallback encoding</a>.

Expand Down

0 comments on commit 0908c4b

Please sign in to comment.