Skip to content

Commit 3db9868

Browse files
missed some nits
1 parent 0aa9b56 commit 3db9868

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

fetch.bs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ urlPrefix:https://html.spec.whatwg.org#;type:dfn;spec:html
7575
"COOKIES": {
7676
"authors": ["Johann Hofmann", "Anne van Kesteren"],
7777
"href": "https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-layered-cookies",
78-
"title": "Cookies: HTTP State Management Mechanism",
78+
"title": "Cookies: HTTP State Management Mechanism"
7979
},
8080
"HTTP": {
8181
"aliasOf": "RFC9110"
@@ -4268,10 +4268,10 @@ We define infrastructure to be able to use them conveniently here.
42684268

42694269
<div algorithm>
42704270
<p>To <dfn id=append-a-request-cookie-header>append a request `<code>Cookie</code>` header</dfn>,
4271-
given a <a for=/>request</a> <var>request</var>, run these steps:
4271+
given a <a for=/>request</a> <var>request</var>:
42724272

42734273
<ol>
4274-
<li><p>If the user agent is configured to disable cookies for <var>request</var>, it should
4274+
<li><p>If the user agent is configured to disable cookies for <var>request</var>, then it should
42754275
return.
42764276

42774277
<li><p>Let |sameSite| be the result of [=determining the same-site mode=] for <var>request</var>.
@@ -4292,21 +4292,21 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
42924292
<var>request</var>'s <a for=request>current URL</a>'s <a for=url>host</a>, <var>request</var>'s
42934293
<a for=request>current URL</a>'s <a for=url>path</a>, |httpOnlyAllowed|, and |sameSite|.
42944294

4295-
<p class=note>It is expected that the cookie store returns an ordered list of cookies
4295+
<p class=note>The cookie store returns an ordered list of cookies
42964296

4297-
<li>If |cookies| <a for="list">is empty</a>, then return.
4297+
<li><p>If |cookies| <a for="list">is empty</a>, then return.
42984298

4299-
<li>Let |value| be the result of running <a>serialize cookies</a> given |cookies|.
4299+
<li><p>Let |value| be the result of running <a>serialize cookies</a> given |cookies|.
43004300

4301-
<li><a for="header list">Append</a> (`<code>Cookie</code>`, <var>value</var>) to
4301+
<li><p><a for="header list">Append</a> (`<code>Cookie</code>`, <var>value</var>) to
43024302
<var>request</var>'s <a for=request>header list</a>.
43034303
</ol>
43044304
</div>
43054305

43064306
<div algorithm>
4307-
<p>To <dfn id=parse-and-store-response-cookie-headers>parse and store response
4308-
`<code>Set-Cookie</code>` headers</dfn>, given a <a for=/>request</a> <var>request</var> and a
4309-
<a for=/>response</a> <var>response</var>, run these steps:
4307+
<p>To
4308+
<dfn id=parse-and-store-response-cookie-headers>parse and store response `<code>Set-Cookie</code>` headers</dfn>,
4309+
given a <a for=/>request</a> <var>request</var> and a <a for=/>response</a> <var>response</var>:
43104310

43114311
<ol>
43124312
<li><p>If the user agent is configured to disable cookies for <var>request</var>,
@@ -4316,8 +4316,8 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
43164316

43174317
<li><p>Let |isSecure| be false.
43184318

4319-
<li><p>If <var>request</var>'s <a for=request>client</a> is a <a>secure context</a>, set
4320-
|isSecure| to true.
4319+
<li><p>If <var>request</var>'s <a for=request>url</a>'s <a for=url>scheme</a> is
4320+
"<code>https</code>", then set |isSecure| to true.
43214321

43224322
<li>
43234323
<p>Let |httpOnlyAllowed| be true.
@@ -4348,8 +4348,8 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
43484348

43494349
<h3 id=cookie-infrastructure>Cookie infrastructure</h3>
43504350

4351-
These algorithms are not only for use with the `<code>Cookie</code>` header, and are used in other
4352-
specifications.
4351+
<p>These algorithms are not only for use with the `<code>Cookie</code>` header, and are used in
4352+
other specifications.
43534353

43544354
<div algorithm>
43554355
<p>To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a> <var>request</var>:

0 commit comments

Comments
 (0)