Skip to content

Commit b482186

Browse files
committed
Editorial: use tuple syntax
And consistify callsite of no-CORS-safelisted request-header.
1 parent 3cafbdf commit b482186

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

fetch.bs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,14 +1043,15 @@ is a <a>byte-case-insensitive</a> match for one of
10431043
<li>`<code>Content-Type</code>`
10441044
</ul>
10451045

1046-
<p>To determine whether a <a for/>header</a> <var>header</var> is a
1046+
<p>To determine whether a <a for/>header</a> (<var>name</var>, <var>value</var>) is a
10471047
<dfn noexport>no-CORS-safelisted request-header</dfn>, run these steps:
10481048

10491049
<ol>
1050-
<li><p>If <var>header</var>'s <a for=header>name</a> is not a
1051-
<a>no-CORS-safelisted request-header name</a>, then return false.
1050+
<li><p>If <var>name</var> is not a <a>no-CORS-safelisted request-header name</a>, then return
1051+
false.
10521052

1053-
<li><p>Return whether <var>header</var> is a <a>CORS-safelisted request-header</a>.
1053+
<li><p>Return whether (<var>name</var>, <var>value</var>) is a
1054+
<a>CORS-safelisted request-header</a>.
10541055
</ol>
10551056

10561057
<p>A <dfn export>forbidden header name</dfn> is a <a for=/>header name</a> that is a
@@ -6383,7 +6384,7 @@ new Headers(meta2);
63836384
<li><p>Otherwise, set <var>temporaryValue</var> to <var>temporaryValue</var>, followed by
63846385
0x2C 0x20, followed by <var>value</var>.
63856386

6386-
<li><p>If <var>name</var>/<var>temporaryValue</var> is not a
6387+
<li><p>If (<var>name</var>, <var>temporaryValue</var>) is not a
63876388
<a>no-CORS-safelisted request-header</a>, then return.
63886389
</ol>
63896390

@@ -6509,7 +6510,7 @@ method steps are:
65096510
<var>name</var> is a <a>forbidden header name</a>, return.
65106511

65116512
<li><p>Otherwise, if <a>this</a>'s <a for=Headers>guard</a> is "<code>request-no-cors</code>" and
6512-
<var>name</var>/<var>value</var> is not a <a>no-CORS-safelisted request-header</a>, return.
6513+
(<var>name</var>, <var>value</var>) is not a <a>no-CORS-safelisted request-header</a>, return.
65136514

65146515
<li><p>Otherwise, if <a>this</a>'s <a for=Headers>guard</a> is "<code>response</code>" and
65156516
<var>name</var> is a <a>forbidden response-header name</a>, return.

0 commit comments

Comments
 (0)