Skip to content

Commit cee224d

Browse files
committed
Handle the constructor case where priority is set in init but internal priority is not.
1 parent 29488bb commit cee224d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

fetch.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7474,9 +7474,15 @@ constructor steps are:
74747474
<li><p>If <var>init</var>["{{RequestInit/signal}}"] <a for=map>exists</a>, then set
74757475
<var>signal</var> to it.
74767476

7477-
<li><p>If <var>init</var>["{{RequestInit/priority}}"] <a for=map>exists</a> and
7478-
<var>request</var>'s <a for=request>internal priority</a> is not null, update
7479-
<var>request</var>'s <a for=request>internal priority</a> appropriately.
7477+
<li>
7478+
<p>If <var>init</var>["{{RequestInit/priority}}"] <a for=map>exists</a>, then:
7479+
<ol>
7480+
<li><p>If <var>request</var>'s <a for=request>internal priority</a> is not null, update
7481+
<var>request</var>'s <a for=request>internal priority</a> appropriately.
7482+
7483+
<li><p>Otherwise, set <var>request</var>'s <a for=request>priority</a> to the value of
7484+
<var>init</var>["{{RequestInit/priority}}"].
7485+
</ol>
74807486

74817487
<li><p>Set <a>this</a>'s <a for=Request>request</a> to <var>request</var>.
74827488

0 commit comments

Comments
 (0)