@@ -4615,32 +4615,33 @@ steps:
4615
4615
<h3 id=scheme-fetch oldids=basic-fetch>Scheme fetch</h3>
4616
4616
4617
4617
<p> To <dfn id=concept-scheme-fetch oldids=concept-basic-fetch>scheme fetch</dfn> , given a
4618
- <a for=/>fetch params</a> <var> fetchParams</var> : let <var> request</var> be <var> fetchParams</var> 's
4619
- <a for="fetch params">request</a> , switch on <var> request</var> 's <a for=request>current URL</a>' s
4620
- <a for=url>scheme</a> , and run the associated steps:
4618
+ <a for=/>fetch params</a> <var> fetchParams</var> :
4621
4619
4622
- <dl class=switch>
4623
- <dt> "<code> about</code> "
4624
- <dd>
4625
- <p> If <var> request</var> 's <a for=request>current URL</a>' s <a for=url>path</a> is the string
4626
- "<code> blank</code> ", then return a new <a for=/>response</a> whose
4627
- <a for=response>status message</a> is `<code> OK</code> `, <a for=response>header list</a> is «
4628
- (`<code> Content-Type</code> `, `<code> text/html;charset=utf-8</code> `) », and
4629
- <a for=response>body</a> is the empty byte sequence <a for="byte sequence">as a body</a> .
4620
+ <ol>
4621
+ <li><p> If <var> fetchParams</var> is <a for="fetch params">canceled</a> , then return the
4622
+ <a for=/>appropriate network error</a> for <var> fetchParams</var> .
4630
4623
4631
- <p> Otherwise, return a <a>network error </a> .
4624
+ <li><p> Let <var> request </var> be <var> fetchParams </var> 's <a for="fetch params">request </a> .
4632
4625
4633
- <p class="note no-backref"> <a for=/>URLs</a> such as " <code> about:config </code> " are handled
4634
- during <a lt=navigate>navigation </a> and result in a <a>network error </a> in the context of
4635
- <a lt=fetch for=/>fetching</a> .
4626
+ <li>
4627
+ <p> Switch on <var> request </var> 's <a for=request>current URL </a>' s <a for=url>scheme </a> and run
4628
+ the associated steps:
4636
4629
4637
- <dt> "<code> blob</code> "
4638
- <dd>
4639
- <ol>
4640
- <li>
4641
- <p> Run these steps, but <a>abort when</a> <var> fetchParams</var> is
4642
- <a for="fetch params">canceled</a> :
4630
+ <dl class=switch>
4631
+ <dt> "<code> about</code> "
4632
+ <dd>
4633
+ <p> If <var> request</var> 's <a for=request>current URL</a>' s <a for=url>path</a> is the string
4634
+ "<code> blank</code> ", then return a new <a for=/>response</a> whose
4635
+ <a for=response>status message</a> is `<code> OK</code> `, <a for=response>header list</a> is «
4636
+ (`<code> Content-Type</code> `, `<code> text/html;charset=utf-8</code> `) », and
4637
+ <a for=response>body</a> is the empty byte sequence <a for="byte sequence">as a body</a> .
4643
4638
4639
+ <p class=note> <a for=/>URLs</a> such as "<code> about:config</code> " are handled during
4640
+ <a lt=navigate>navigation</a> and result in a <a>network error</a> in the context of
4641
+ <a lt=fetch for=/>fetching</a> .
4642
+
4643
+ <dt> "<code> blob</code> "
4644
+ <dd>
4644
4645
<ol>
4645
4646
<li><p> Let <var> blobURLEntry</var> be <var> request</var> 's <a for=request>current URL</a>' s
4646
4647
<a for=url>blob URL entry</a> .
@@ -4671,41 +4672,36 @@ steps:
4671
4672
<a for=response>body</a> is <var> body</var> .
4672
4673
</ol>
4673
4674
4674
- <li><p> <a>If aborted</a> , then return the <a for=/>appropriate network error</a> for
4675
- <var> fetchParams</var> .
4676
- </ol>
4677
-
4678
- <dt> "<code> data</code> "
4679
- <dd>
4680
- <ol>
4681
- <li><p> Let <var> dataURLStruct</var> be the result of running the
4682
- <a><code>data:</code> URL processor</a> on <var> request</var> 's <a for=request>current URL</a> .
4675
+ <dt> "<code> data</code> "
4676
+ <dd>
4677
+ <ol>
4678
+ <li><p> Let <var> dataURLStruct</var> be the result of running the
4679
+ <a><code>data:</code> URL processor</a> on <var> request</var> 's <a for=request>current URL</a> .
4683
4680
4684
- <li><p> If <var> dataURLStruct</var> is failure, then return a <a>network error</a> .
4681
+ <li><p> If <var> dataURLStruct</var> is failure, then return a <a>network error</a> .
4685
4682
4686
- <li><p> Let <var> mimeType</var> be <var> dataURLStruct</var> 's
4687
- <a for="data: URL struct">MIME type</a> , <a lt="serialize a MIME type to bytes">serialized</a> .
4683
+ <li><p> Let <var> mimeType</var> be <var> dataURLStruct</var> 's
4684
+ <a for="data: URL struct">MIME type</a> , <a lt="serialize a MIME type to bytes">serialized</a> .
4688
4685
4689
- <li><p> Return a new <a for=/>response</a> whose <a for=response>status message</a> is
4690
- `<code> OK</code> `, <a for=response>header list</a> is « (`<code> Content-Type</code> `,
4691
- <var> mimeType</var> ) », and <a for=response>body</a> is <var> dataURLStruct</var> 's
4692
- <a for="data: URL struct">body</a> <a for="byte sequence">as a body</a> .
4693
- </ol>
4686
+ <li><p> Return a new <a for=/>response</a> whose <a for=response>status message</a> is
4687
+ `<code> OK</code> `, <a for=response>header list</a> is « (`<code> Content-Type</code> `,
4688
+ <var> mimeType</var> ) », and <a for=response>body</a> is <var> dataURLStruct</var> 's
4689
+ <a for="data: URL struct">body</a> <a for="byte sequence">as a body</a> .
4690
+ </ol>
4694
4691
4695
- <dt> "<code> file</code> "
4696
- <dd>
4697
- <p> For now, unfortunate as it is, <code> file</code> <a for=/>URLs</a> are left as an exercise for
4698
- the reader.
4692
+ <dt> "<code> file</code> "
4693
+ <dd>
4694
+ <p> For now, unfortunate as it is, <code> file: </code> <a for=/>URLs</a> are left as an exercise
4695
+ for the reader.
4699
4696
4700
- <p> When in doubt, return a <a>network error</a> .
4697
+ <p> When in doubt, return a <a>network error</a> .
4701
4698
4702
- <dt> <a>HTTP(S) scheme</a>
4703
- <dd>
4704
- <p> Return the result of running <a>HTTP fetch</a> given <var> fetchParams </var> .
4699
+ <dt> <a>HTTP(S) scheme</a>
4700
+ <dd><p> Return the result of running <a>HTTP fetch</a> given <var> fetchParams </var> .
4701
+ </dl>
4705
4702
4706
- <dt> Otherwise
4707
- <dd><p> Return a <a>network error</a> .
4708
- </dl>
4703
+ <li><p> Return a <a for=/>network error</a> .
4704
+ </ol>
4709
4705
4710
4706
4711
4707
<h3 id=http-fetch>HTTP fetch</h3>
0 commit comments