Skip to content

Commit 0332175

Browse files
authored
Editorial: clean up definitions of network errors
1 parent afacb1f commit 0332175

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

fetch.bs

+16-22
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,10 @@ for consistency.
567567
<h4 id=terminology-headers>Headers</h4>
568568

569569
<p>A <dfn export id=concept-header-list>header list</dfn> is a <a for=/>list</a> of zero or more
570-
<a for=/>headers</a>. It is initially the empty list.
570+
<a for=/>headers</a>. It is initially « ».
571571

572-
<p class="note no-backref">A <a for=/>header list</a> is essentially a
573-
specialized multimap: an ordered list of key-value pairs with potentially duplicate keys.
572+
<p class=note>A <a for=/>header list</a> is essentially a specialized multimap: an ordered list of
573+
key-value pairs with potentially duplicate keys.
574574

575575
<div algorithm>
576576
<p>To
@@ -1534,7 +1534,7 @@ unset.
15341534

15351535
<p>A <a for=/>request</a> has an associated
15361536
<dfn export for=request id=concept-request-header-list>header list</dfn> (a
1537-
<a for=/>header list</a>). Unless stated otherwise it is empty.
1537+
<a for=/>header list</a>). Unless stated otherwise it is « ».
15381538

15391539
<p>A <a for=/>request</a> has an associated
15401540
<dfn id=unsafe-request-flag export for=request>unsafe-request flag</dfn>. Unless stated otherwise it
@@ -2313,9 +2313,9 @@ end-user.
23132313

23142314
<p>A <a for=/>response</a> has an associated
23152315
<dfn export for=response id=concept-response-url-list>URL list</dfn> (a <a for=/>list</a> of zero or
2316-
more <a for=/>URLs</a>). Unless stated otherwise, it is the empty list.
2316+
more <a for=/>URLs</a>). Unless stated otherwise, it is « ».
23172317

2318-
<p class="note no-backref">Except for the last <a for=/>URL</a>, if any, a <a for=/>response</a>'s
2318+
<p class=note>Except for the last <a for=/>URL</a>, if any, a <a for=/>response</a>'s
23192319
<a for=response>URL list</a> is not exposed to script as that would violate
23202320
<a>atomic HTTP redirect handling</a>.
23212321

@@ -2332,7 +2332,7 @@ message as HTTP/2 does not support them.
23322332

23332333
<p>A <a for=/>response</a> has an associated
23342334
<dfn export for=response id=concept-response-header-list>header list</dfn> (a
2335-
<a for=/>header list</a>). Unless stated otherwise it is empty.
2335+
<a for=/>header list</a>). Unless stated otherwise it is « ».
23362336

23372337
<p>A <a for=/>response</a> has an associated
23382338
<dfn export for=response id=concept-response-body>body</dfn> (null or a
@@ -2395,19 +2395,13 @@ this is also tracked internally using the request's <a for=request>timing allow
23952395

23962396
<hr>
23972397

2398-
<p>A <a for=/>response</a> whose
2399-
<a for=response>type</a> is "<code>error</code>" and <a for=response>aborted flag</a> is set is
2400-
known as an <dfn export id=concept-aborted-network-error>aborted network error</dfn>.
2401-
2402-
<p>A <a for=/>response</a> whose
2403-
<a for=response>type</a> is "<code>error</code>" is known as a
2404-
<dfn export id=concept-network-error>network error</dfn>.
2398+
<p>A <dfn export id=concept-network-error>network error</dfn> is a <a for=/>response</a> whose
2399+
<a for=response>type</a> is "<code>error</code>", <a for=response>status</a> is 0,
2400+
<a for=response>status message</a> is the empty byte sequence,
2401+
<a for=response>header list</a> is « », and <a for=response>body</a> is null.
24052402

2406-
<p>A <a>network error</a> is a <a for=/>response</a> whose
2407-
<a for=response>status</a> is always 0,
2408-
<a for=response>status message</a> is always the empty byte sequence,
2409-
<a for=response>header list</a> is always empty, and
2410-
<a for=response>body</a> is always null.
2403+
<p>An <dfn export id=concept-aborted-network-error>aborted network error</dfn> is a
2404+
<a>network error</a> whose <a for=response>aborted flag</a> is set.
24112405

24122406
<div algorithm>
24132407
<p>To create the <dfn>appropriate network error</dfn> given <a for=/>fetch params</a>
@@ -2472,10 +2466,10 @@ of defining the concrete types of <a for=/>filtered responses</a>.)
24722466
<p>An <dfn export id=concept-filtered-response-opaque>opaque filtered response</dfn> is a
24732467
<a>filtered response</a> whose
24742468
<a for=response>type</a> is "<code>opaque</code>",
2475-
<a for=response>URL list</a> is the empty list,
2469+
<a for=response>URL list</a> is « »,
24762470
<a for=response>status</a> is 0,
24772471
<a for=response>status message</a> is the empty byte sequence,
2478-
<a for=response>header list</a> is empty, and
2472+
<a for=response>header list</a> is « », and
24792473
<a for=response>body</a> is null.
24802474

24812475
<p>An
@@ -2484,7 +2478,7 @@ is a <a>filtered response</a> whose
24842478
<a for=response>type</a> is "<code>opaqueredirect</code>",
24852479
<a for=response>status</a> is 0,
24862480
<a for=response>status message</a> is the empty byte sequence,
2487-
<a for=response>header list</a> is empty, and
2481+
<a for=response>header list</a> is « », and
24882482
<a for=response>body</a> is null.
24892483

24902484
<div class=note>

0 commit comments

Comments
 (0)