Skip to content

Commit 0aa9b56

Browse files
Add datatracker link for cookie spec and address nits
1 parent 72d8ecf commit 0aa9b56

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

fetch.bs

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ urlPrefix:https://tc39.es/ecma262/#;type:dfn;spec:ecma-262
5555
url:sec-list-and-record-specification-type;text:Record
5656
url:current-realm;text:current realm
5757

58-
urlPrefix:https://www.ietf.org/archive/id/draft-annevk-johannhof-httpbis-cookies-00.html#;type:dfn;spec:cookies
58+
urlPrefix:https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-layered-cookies#;type:dfn;spec:cookies
5959
url:name-cookie-store-and-limits;text:cookie store
6060
url:name-parse-and-store-a-cookie;text:parse and store a cookie
6161
url:name-parse-a-cookie;text:parse a cookie
@@ -73,9 +73,9 @@ urlPrefix:https://html.spec.whatwg.org#;type:dfn;spec:html
7373
<pre class=biblio>
7474
{
7575
"COOKIES": {
76-
"authors": ["Johann Hofmann", "Anne van Kesteren"],
77-
"href": "https://www.ietf.org/archive/id/draft-annevk-johannhof-httpbis-cookies-00.html",
78-
"title": "Cookies: HTTP State Management Mechanism"
76+
"authors": ["Johann Hofmann", "Anne van Kesteren"],
77+
"href": "https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-layered-cookies",
78+
"title": "Cookies: HTTP State Management Mechanism",
7979
},
8080
"HTTP": {
8181
"aliasOf": "RFC9110"
@@ -1958,8 +1958,8 @@ not always relevant and might require different behavior.
19581958
"<code>client</code>".
19591959

19601960
<p>A <a for=/>request</a> has an associated
1961-
<dfn export for=request id=concept-request-navigation-initiator-origin>top-level navigation
1962-
initiator origin</dfn>, which is an <a for=/>origin</a> or null. Unless stated otherwise it is null.
1961+
<dfn export for=request id=concept-request-navigation-initiator-origin>top-level navigation initiator origin</dfn>,
1962+
which is an <a for=/>origin</a> or null. Unless stated otherwise it is null.
19631963

19641964
<p class=note>"<code>client</code>" is changed to an <a for=/>origin</a> during
19651965
<a lt=fetch for=/>fetching</a>. It provides a convenient way for standards to not have to set
@@ -4257,6 +4257,8 @@ indicates the request’s purpose is to fetch a resource that is anticipated to
42574257
<p class=note>The server can use this to adjust the caching expiry for prefetches, to disallow the
42584258
prefetch, or to treat it differently when counting page visits.
42594259

4260+
4261+
42604262
<h2 id=cookies>Cookies</h2>
42614263

42624264
<h3 id=cookie-header>`<code>Cookie</code>` header</h3>
@@ -4344,30 +4346,31 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
43444346
</ol>
43454347
</div>
43464348

4347-
<h3 id=cookie-infrastructure>Cookie Infrastructure</h3>
4349+
<h3 id=cookie-infrastructure>Cookie infrastructure</h3>
43484350

43494351
These algorithms are not only for use with the `<code>Cookie</code>` header, and are used in other
43504352
specifications.
43514353

43524354
<div algorithm>
4353-
<p>To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a> <var>request</var>,
4354-
run these steps:
4355+
<p>To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a> <var>request</var>:
43554356

43564357
<ol>
4357-
<li><p><a for=/>Assert</a>: <var>request</var>'s <a for=request>method</a> is "GET" or "POST".
4358+
<li><p><a for=/>Assert</a>: <var>request</var>'s <a for=request>method</a> is "<code>GET</code>"
4359+
or "<code>POST</code>".
43584360

43594361
<li><p>If <var>request</var>'s <a for=request>top-level navigation initiator origin</a> is not
43604362
null and is not <a for=/>same site</a> to <var>request</var>'s <a for=request>URL</a>'s
43614363
<a for=url>origin</a>, return "<code>UnsetOrLess</code>".
43624364

4363-
<li><p>If <var>request</var>'s <a for=request>method</a> is "GET" and <var>request</var>'s
4364-
<a for=request>destination</a> is "document", return "<code>LaxOrLess</code>".
4365+
<li><p>If <var>request</var>'s <a for=request>method</a> is "<code>GET</code>" and
4366+
<var>request</var>'s <a for=request>destination</a> is "document", return
4367+
"<code>LaxOrLess</code>".
43654368

43664369
<li><p>If <var>request</var>'s <a for=request>client</a>'s <a for=environment>ancestry</a> is
4367-
"<code>cross-site</code>", return "<code>UnsetOrLess</code>".
4370+
"<code>cross-site</code>", then return "<code>UnsetOrLess</code>".
43684371

43694372
<li><p>If <var>request</var>'s <a for=request>redirect-taint</a> is "<code>cross-site</code>",
4370-
return "<code>UnsetOrLess</code>".
4373+
then return "<code>UnsetOrLess</code>".
43714374

43724375
<li><p>Return "<code>StrictOrLess</code>".
43734376
</ol>
@@ -6432,7 +6435,7 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
64326435
<li><p>Set <var>response</var>'s <a for=response>body</a> to a new <a for=/>body</a> whose
64336436
<a for=body>stream</a> is <var>stream</var>.
64346437

6435-
<li><p tracking-vector>If <var>includeCredentials</var> is true, the user agent should
6438+
<li><p tracking-vector>If <var>includeCredentials</var> is true, then the user agent should
64366439
<a>parse and store response `<code>Set-Cookie</code>` headers</a> given <var>request</var> and
64376440
<var>response</var>.
64386441

0 commit comments

Comments
 (0)