Skip to content

Commit 897c560

Browse files
authored
Editorial: more nits and more <div algorithm> wrappers
Related to #1526.
1 parent bec03e6 commit 897c560

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

fetch.bs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2666,6 +2666,7 @@ functionality.
26662666

26672667
<h3 id=resolving-domains>Resolving domains</h3>
26682668

2669+
<div algorithm>
26692670
<p tracking-vector>To
26702671
<dfn export id=resolve-an-origin oldids=resolve-a-domain>resolve an origin</dfn>, given a
26712672
<a for=/>network partition key</a> <var>key</var> and an <a for=/>origin</a> <var>origin</var>:
@@ -2710,6 +2711,7 @@ be used as part of the cache key.
27102711
system the Fetch Standard establishes. Other documents ought not to build on this primitive without
27112712
having a considered discussion with the Fetch Standard community first.
27122713
</div>
2714+
</div>
27132715

27142716

27152717
<h3 id=connections>Connections</h3>
@@ -2742,6 +2744,7 @@ information pertaining to the process of obtaining a connection. It has the foll
27422744
<dd>A <a for=/>byte sequence</a>.
27432745
</dl>
27442746

2747+
<div algorithm>
27452748
<p>To <dfn>clamp and coarsen connection timing info</dfn>, given a
27462749
<a for=/>connection timing info</a> <var>timingInfo</var>, a {{DOMHighResTimeStamp}}
27472750
<var>defaultStartTime</var>, and a boolean <var>crossOriginIsolatedCapability</var>, run these
@@ -2778,12 +2781,14 @@ steps:
27782781
<a for="connection timing info">ALPN negotiated protocol</a> is <var>timingInfo</var>'s
27792782
<a for="connection timing info">ALPN negotiated protocol</a>.
27802783
</ol>
2784+
</div>
27812785

27822786
<hr>
27832787

27842788
<p>A <dfn>new connection setting</dfn> is "<code>no</code>", "<code>yes</code>", or
27852789
"<code>yes-and-dedicated</code>".
27862790

2791+
<div algorithm="obtain a connection">
27872792
<p>To <dfn export id=concept-connection-obtain>obtain a connection</dfn>, given a
27882793
<a>network partition key</a> <var>key</var>, <a for=/>URL</a> <var>url</var>, boolean
27892794
<var>credentials</var>, an optional <a>new connection setting</a> <var>new</var> (default
@@ -2828,7 +2833,8 @@ steps:
28282833
<li><p>Set <var>timingInfo</var>'s <a for="connection timing info">domain lookup start time</a>
28292834
to the <a for=/>unsafe shared current time</a>.
28302835

2831-
<li><p>Let <var>hosts</var> be « <var>origin</var>'s <a for=origin>host</a> ».
2836+
<li><p>Let <var>hosts</var> be « <var>url</var>'s <a for=url>origin</a>'s
2837+
<a for=origin>host</a> ».
28322838

28332839
<li><p>If <var>proxy</var> is "<code>DIRECT</code>", then set <var>hosts</var> to the result of
28342840
running <a>resolve an origin</a> given <var>key</var> and <var>url</var>'s <a for=url>origin</a>.
@@ -2869,9 +2875,11 @@ management that are best left to the discretion of implementers. Describing this
28692875
keyed on <a for=/>credentials</a>. The latter clarifies that, e.g., TLS session identifiers are not
28702876
reused across <a>connections</a> whose <a for=connection>credentials</a> are false with
28712877
<a>connections</a> whose <a for=connection>credentials</a> are true.
2878+
</div>
28722879

28732880
<hr>
28742881

2882+
<div algorithm>
28752883
<p>To <dfn>create a connection</dfn>, given a <a for=/>network partition key</a> <var>key</var>,
28762884
<a for=/>origin</a> <var>origin</var>, boolean <var>credentials</var>, string <var>proxy</var>,
28772885
<a for=/>host</a> <var>host</var>, <a for=/>connection timing info</a> <var>timingInfo</var>, and
@@ -2925,9 +2933,11 @@ boolean <var>http3Only</var>, run these steps:
29252933

29262934
<li><p>Return <var>connection</var>.
29272935
</ol>
2936+
</div>
29282937

29292938
<hr>
29302939

2940+
<div algorithm>
29312941
<p>To <dfn>record connection timing info</dfn> given a <a for=/>connection</a>
29322942
<var>connection</var>, let <var>timingInfo</var> be <var>connection</var>'s
29332943
<a for=connection>timing info</a> and observe these requirements:
@@ -2977,6 +2987,7 @@ boolean <var>http3Only</var>, run these steps:
29772987

29782988
<p class=note>The <a for=/>clamp and coarsen connection timing info</a> algorithm ensures that
29792989
details of reused connections are not exposed and time values are coarsened.
2990+
</div>
29802991

29812992

29822993
<h3 id=network-partition-keys>Network partition keys</h3>

0 commit comments

Comments
 (0)