Skip to content

Commit f6e9b8d

Browse files
authored
Editorial: <div algorithm> wrappers for more definitions
Related to #1526.
1 parent e8b67b0 commit f6e9b8d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fetch.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,6 +2395,7 @@ known as an <dfn export id=concept-aborted-network-error>aborted network error</
23952395
<a for=response>header list</a> is always empty, and
23962396
<a for=response>body</a> is always null.
23972397

2398+
<div algorithm>
23982399
<p>To create the <dfn>appropriate network error</dfn> given <a for=/>fetch params</a>
23992400
<var>fetchParams</var>:
24002401

@@ -2404,6 +2405,7 @@ known as an <dfn export id=concept-aborted-network-error>aborted network error</
24042405
<li><p>Return an <a>aborted network error</a> if <var>fetchParams</var> is
24052406
<a for="fetch params">aborted</a>; otherwise return a <a>network error</a>.
24062407
</ol>
2408+
</div>
24072409

24082410
<hr>
24092411

@@ -2509,6 +2511,7 @@ console.log((await fetch("/surprise-me", { redirect: "manual" })).type); // "opa
25092511

25102512
<hr>
25112513

2514+
<div algorithm>
25122515
<p>To <dfn export for=response id=concept-response-clone>clone</dfn> a
25132516
<a for=/>response</a> <var>response</var>, run these steps:
25142517

@@ -2527,6 +2530,7 @@ console.log((await fetch("/surprise-me", { redirect: "manual" })).type); // "opa
25272530

25282531
<li><p>Return <var>newResponse</var>.
25292532
</ol>
2533+
</div>
25302534

25312535
<hr>
25322536

@@ -2544,6 +2548,7 @@ not a <a>fresh response</a> or a <a>stale-while-revalidate response</a>.
25442548

25452549
<hr>
25462550

2551+
<div algorithm>
25472552
<p>The <dfn export for=response id=concept-response-location-url>location URL</dfn> of a
25482553
<a for=/>response</a> <var>response</var>, given null or an <a for=/>ASCII string</a>
25492554
<var>requestFragment</var>, is the value returned by the following steps. They return null, failure,
@@ -2579,13 +2584,15 @@ or a <a for=/>URL</a>.
25792584
<p class=note>The <a for=response>location URL</a> algorithm is exclusively used for redirect
25802585
handling in this standard and in <cite>HTML</cite>'s navigate algorithm which handles redirects
25812586
manually. [[!HTML]]
2587+
</div>
25822588

25832589

25842590
<h4 id=miscellaneous>Miscellaneous</h4>
25852591

25862592
<p>A <dfn export id=concept-potential-destination>potential destination</dfn> is
25872593
"<code>fetch</code>" or a <a for=request>destination</a> which is not the empty string.
25882594

2595+
<div algorithm>
25892596
<p>To <dfn export for=destination id=concept-potential-destination-translate>translate</dfn> a
25902597
<a for=/>potential destination</a> <var>potentialDestination</var>, run these steps:
25912598

@@ -2596,6 +2603,7 @@ manually. [[!HTML]]
25962603

25972604
<li><p>Return <var>potentialDestination</var>.
25982605
</ol>
2606+
</div>
25992607

26002608

26012609
<h3 id=authentication-entries>Authentication entries</h3>

0 commit comments

Comments
 (0)