@@ -75,7 +75,7 @@ urlPrefix:https://html.spec.whatwg.org#;type:dfn;spec:html
75
75
"COOKIES": {
76
76
"authors": ["Johann Hofmann", "Anne van Kesteren"] ,
77
77
"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"
79
79
},
80
80
"HTTP": {
81
81
"aliasOf": "RFC9110"
@@ -4268,10 +4268,10 @@ We define infrastructure to be able to use them conveniently here.
4268
4268
4269
4269
<div algorithm>
4270
4270
<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> :
4272
4272
4273
4273
<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
4275
4275
return.
4276
4276
4277
4277
<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:
4292
4292
<var> request</var> 's <a for=request>current URL</a>' s <a for=url>host</a> , <var> request</var> 's
4293
4293
<a for=request>current URL</a> 's <a for=url>path</a> , |httpOnlyAllowed|, and |sameSite|.
4294
4294
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
4296
4296
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.
4298
4298
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|.
4300
4300
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
4302
4302
<var> request</var> 's <a for=request>header list</a> .
4303
4303
</ol>
4304
4304
</div>
4305
4305
4306
4306
<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> :
4310
4310
4311
4311
<ol>
4312
4312
<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:
4316
4316
4317
4317
<li><p> Let |isSecure| be false.
4318
4318
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.
4321
4321
4322
4322
<li>
4323
4323
<p> Let |httpOnlyAllowed| be true.
@@ -4348,8 +4348,8 @@ given a <a for=/>request</a> <var>request</var>, run these steps:
4348
4348
4349
4349
<h3 id=cookie-infrastructure>Cookie infrastructure</h3>
4350
4350
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.
4353
4353
4354
4354
<div algorithm>
4355
4355
<p> To <dfn>determine the same-site mode</dfn> for a given <a for=/>request</a> <var> request</var> :
0 commit comments