@@ -795,8 +795,7 @@ directly. Use <a for="header list">get, decode, and split</a> instead.
795
795
<a for=header>value</a> of the first such <a for=/>header</a> to <var> value</var> and
796
796
<a for=list>remove</a> the others.
797
797
798
- <li><p> Otherwise, <a for=list>append</a> <a for=/>header</a> (<var> name</var> , <var> value</var> ) to
799
- <var> list</var> .
798
+ <li><p> Otherwise, <a for=list>append</a> (<var> name</var> , <var> value</var> ) to <var> list</var> .
800
799
</ol>
801
800
802
801
<p> To <dfn export for="header list" id=concept-header-list-combine>combine</dfn> a
@@ -841,7 +840,7 @@ a <a for=/>header list</a> <var>list</var>, run these steps:
841
840
of the <a for=/>headers</a> in <var> list</var> .
842
841
843
842
<li>
844
- <p> <a for=list>For each</a> <var> name</var> in <var> names</var> :
843
+ <p> <a for=list>For each</a> <var> name</var> of <var> names</var> :
845
844
846
845
<ol>
847
846
<li><p> Let <var> value</var> be the result of <a for="header list">getting</a> <var> name</var>
@@ -1117,7 +1116,7 @@ is a <a>byte-case-insensitive</a> match for one of
1117
1116
<li><p> Let <var> parsedValues</var> be the result of
1118
1117
<a for="header value">getting, decoding, and splitting</a> <var> value</var> .
1119
1118
1120
- <li><p> <a for=list>For each</a> <var> method</var> in <var> parsedValues</var> : if the
1119
+ <li><p> <a for=list>For each</a> <var> method</var> of <var> parsedValues</var> : if the
1121
1120
<a>isomorphic encoding</a> of <var> method</var> is a <a>forbidden method</a> , then return true.
1122
1121
</ol>
1123
1122
@@ -2077,7 +2076,7 @@ return true:
2077
2076
<li><p> Let <var> lastURL</var> be null.
2078
2077
2079
2078
<li>
2080
- <p> <a for=list>For each</a> <var> url</var> in <var> request</var> 's <a for=request>URL list</a> :
2079
+ <p> <a for=list>For each</a> <var> url</var> of <var> request</var> 's <a for=request>URL list</a> :
2081
2080
2082
2081
<ol>
2083
2082
<li><p> If <var> lastURL</var> is null, then set <var> lastURL</var> to <var> url</var> and
@@ -4437,7 +4436,7 @@ steps:
4437
4436
<p> If <var> response</var> 's <a for=response>type</a> is "<code> opaque</code> ",
4438
4437
<var> internalResponse</var> 's <a for=response>status</a> is 206, <var>internalResponse</var>' s
4439
4438
<a for=response>range-requested flag</a> is set, and <var> request</var> 's
4440
- <a for=request>header list</a> does not <a for="header list">contain</a> `<code> Range</code> `,
4439
+ <a for=request>header list</a> <a for="header list">does not contain</a> `<code> Range</code> `,
4441
4440
then set <var> response</var> and <var> internalResponse</var> to a <a>network error</a> .
4442
4441
4443
4442
<div class=note>
@@ -5156,7 +5155,7 @@ run these steps:
5156
5155
and <a>done flag</a> is unset.
5157
5156
5158
5157
<li>
5159
- <p> <a for=set>For each</a> <var> fetchRecord</var> in <var> inflightRecords</var> :
5158
+ <p> <a for=set>For each</a> <var> fetchRecord</var> of <var> inflightRecords</var> :
5160
5159
5161
5160
<ol>
5162
5161
<li><p> Let <var> inflightRequest</var> be <var> fetchRecord</var> 's
@@ -6026,7 +6025,7 @@ number of these <a lt="CORS-preflight fetch">fetches</a>.
6026
6025
<a>byte-case-insensitive</a> match for an <a for=list>item</a> in <var> headerNames</var> , then
6027
6026
return a <a>network error</a> .
6028
6027
6029
- <li><p> <a for=list>For each</a> <var> unsafeName</var> in the
6028
+ <li><p> <a for=list>For each</a> <var> unsafeName</var> of the
6030
6029
<a>CORS-unsafe request-header names</a> with <var> request</var> 's
6031
6030
<a for=request>header list</a> , if <var> unsafeName</var> is not a <a>byte-case-insensitive</a>
6032
6031
match for an <a for=list>item</a> in <var> headerNames</var> and <var> request</var> 's
@@ -6443,19 +6442,18 @@ new Headers(meta2);
6443
6442
6444
6443
<ol>
6445
6444
<li>
6446
- <p> If <var> object</var> is a <a>sequence</a> , then <a for=list>for each</a> <var> header</var> in
6445
+ <p> If <var> object</var> is a <a>sequence</a> , then <a for=list>for each</a> <var> header</var> of
6447
6446
<var> object</var> :
6448
6447
6449
6448
<ol>
6450
- <li><p> If <var> header</var> does not contain exactly two items, then <a>throw</a> a
6451
- {{TypeError}} .
6449
+ <li><p> If <var> header</var> 's <a for=list>size</a> is not 2, then <a>throw</a> a {{TypeError}} .
6452
6450
6453
- <li><p> <a for=Headers>Append</a> (<var> header</var> 's first item , <var>header</var>' s
6454
- second item) to <var> headers</var> .
6451
+ <li><p> <a for=Headers>Append</a> (<var> header</var> [0] , <var> header</var> [1] ) to
6452
+ <var> headers</var> .
6455
6453
</ol>
6456
6454
6457
6455
<li><p> Otherwise, <var> object</var> is a <a for=/>record</a> , then <a for=map>for each</a>
6458
- <var> key</var> → <var> value</var> in <var> object</var> , <a for=Headers>append</a> (<var> key</var> ,
6456
+ <var> key</var> → <var> value</var> of <var> object</var> , <a for=Headers>append</a> (<var> key</var> ,
6459
6457
<var> value</var> ) to <var> headers</var> .
6460
6458
</ol>
6461
6459
@@ -6510,7 +6508,7 @@ method steps are to <a for=Headers>append</a> (<var>name</var>, <var>value</var>
6510
6508
<li><p> Otherwise, if <a>this</a> 's <a for=Headers>guard</a> is "<code> response</code> " and
6511
6509
<var> name</var> is a <a>forbidden response-header name</a> , return.
6512
6510
6513
- <li><p> If <a>this</a> 's <a for=Headers>header list</a> does not <a for="header list">contain</a>
6511
+ <li><p> If <a>this</a> 's <a for=Headers>header list</a> <a for="header list">does not contain</a>
6514
6512
<var> name</var> , then return.
6515
6513
6516
6514
<li><p> <a for="header list">Delete</a> <var> name</var> from <a>this</a> 's
@@ -7436,9 +7434,8 @@ constructor steps are:
7436
7434
<li><p> Empty <a>this</a> 's <a for=Request>headers</a>' s <a for=Headers>header list</a> .
7437
7435
7438
7436
<li><p> If <var> headers</var> is a {{Headers}} object, then <a for=list>for each</a>
7439
- <var> header</var> in its <a for=Headers>header list</a> , <a for=Headers>append</a>
7440
- (<var> header</var> 's <a for=header>name</a>, <var>header</var>' s <a for=header>value</a> ) to
7441
- <a>this</a> 's <a for=Request>headers</a> .
7437
+ <var> header</var> of its <a for=Headers>header list</a> , <a for=Headers>append</a>
7438
+ <var> header</var> to <a>this</a> 's <a for=Request>headers</a> .
7442
7439
7443
7440
<li><p> Otherwise, <a for=Headers>fill</a> <a>this</a> 's <a for=Request>headers</a> with
7444
7441
<var> headers</var> .
0 commit comments