Skip to content

Commit 84ea7db

Browse files
authored
Editorial: add <div algorithm> to Infrastructure algorithms
Related to #1526.
1 parent 3b6fcf6 commit 84ea7db

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

fetch.bs

+16-11
Original file line numberDiff line numberDiff line change
@@ -2999,9 +2999,9 @@ details of reused connections are not exposed and time values are coarsened.
29992999
<p>A <dfn>network partition key</dfn> is a tuple consisting of a <a for=/>site</a> and null or
30003000
an <a>implementation-defined</a> value.
30013001

3002-
<p>To
3003-
<dfn export lt="determine the network partition key|determining the network partition key">determine the network partition key</dfn>,
3004-
given an <a for=/>environment</a> <var>environment</var>, run these steps:
3002+
<div algorithm>
3003+
<p>To <dfn export>determine the network partition key</dfn>, given an
3004+
<a for=/>environment</a> <var>environment</var>:
30053005

30063006
<ol>
30073007
<li><p>Let <var>topLevelOrigin</var> be <var>environment</var>'s
@@ -3023,10 +3023,11 @@ given an <a for=/>environment</a> <var>environment</var>, run these steps:
30233023

30243024
<li><p>Return (<var>topLevelSite</var>, <var>secondKey</var>).
30253025
</ol>
3026+
</div>
30263027

3027-
<p>To
3028-
<dfn for=request lt="determine the network partition key|determining the network partition key">determine the network partition key</dfn>,
3029-
given <var>request</var>, run these steps:
3028+
<div algorithm>
3029+
<p>To <dfn for=request>determine the network partition key</dfn>, given a <a for=/>request</a>
3030+
<var>request</var>:
30303031

30313032
<ol>
30323033
<li><p>If <var>request</var>'s <a for=request>reserved client</a> is non-null, then return the
@@ -3039,13 +3040,13 @@ given <var>request</var>, run these steps:
30393040

30403041
<li><p>Return null.
30413042
</ol>
3043+
</div>
30423044

30433045

30443046
<h3 id=http-cache-partitions>HTTP cache partitions</h3>
30453047

3046-
<p>To
3047-
<dfn lt="determine the HTTP cache partition|determining the HTTP cache partition">determine the HTTP cache partition</dfn>,
3048-
given <var>request</var>, run these steps:
3048+
<div algorithm>
3049+
<p>To <dfn>determine the HTTP cache partition</dfn>, given a <a for=/>request</a> <var>request</var>:
30493050

30503051
<ol>
30513052
<li><p>Let <var>key</var> be the result of <a for=request>determining the network partition key</a>
@@ -3055,6 +3056,7 @@ given <var>request</var>, run these steps:
30553056

30563057
<li><p>Return the unique HTTP cache associated with <var>key</var>. [[!HTTP-CACHING]]
30573058
</ol>
3059+
</div>
30583060

30593061

30603062
<h3 id=port-blocking>Port blocking</h3>
@@ -3063,9 +3065,9 @@ given <var>request</var>, run these steps:
30633065
through TLS using ALPN. The protocol cannot be spoofed through HTTP requests in that case.
30643066
[[RFC7301]]
30653067

3068+
<div algorithm>
30663069
<p>To determine whether fetching a <a for=/>request</a> <var>request</var>
3067-
<dfn export lt="block bad port">should be blocked due to a bad port</dfn>,
3068-
run these steps:
3070+
<dfn export lt="block bad port">should be blocked due to a bad port</dfn>:
30693071

30703072
<ol>
30713073
<li><p>Let <var>url</var> be <var>request</var>'s <a for=request>current URL</a>.
@@ -3075,6 +3077,7 @@ run these steps:
30753077

30763078
<li><p>Return <b>allowed</b>.
30773079
</ol>
3080+
</div>
30783081

30793082
<p>A <a for=url>port</a> is a
30803083
<dfn export>bad port</dfn> if it is listed in the first column of the following table.
@@ -3166,6 +3169,7 @@ run these steps:
31663169
https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.txt -->
31673170

31683171

3172+
<div algorithm="should response to request be blocked due to mime type">
31693173
<h3 dfn export lt="should response to request be blocked due to mime type" id=should-response-to-request-be-blocked-due-to-mime-type?>Should
31703174
<var>response</var> to <var>request</var> be blocked due to its MIME type?</h3>
31713175

@@ -3191,6 +3195,7 @@ run these steps:
31913195

31923196
<li><p>Return <b>allowed</b>.
31933197
</ol>
3198+
</div>
31943199

31953200

31963201

0 commit comments

Comments
 (0)