Skip to content

Commit 7a6ce0d

Browse files
committed
nits
1 parent 53fb61a commit 7a6ce0d

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

fetch.bs

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,38 +3299,42 @@ retried over the original URL.
32993299

33003300
<ol>
33013301
<li>
3302-
<p>If one or more of the following conditions are met, return:
3302+
<p>If any of the following are true:
3303+
33033304
<ul>
3304-
<li><p><var>request</var>'s <a for="request">destination</a> is not "<code>document</code>"
3305+
<li><p><var>request</var>'s <a for="request">destination</a> is not "<code>document</code>";
33053306

3306-
<li><p><var>request</var>'s <a for="request">method</a> is not "<code>GET</code>"
3307+
<li><p><var>request</var>'s <a for="request">method</a> is not "<code>GET</code>";
33073308

33083309
<li><p><var>request</var>'s <a for="request">URL</a>'s <a for="url">scheme</a> is not
3309-
"<code>http</code>"
3310+
"<code>http</code>"; or
33103311

33113312
<li><p><var>request</var>'s <a for="request">URL</a>'s <a for="url">origin</a> is exempted from
3312-
upgrades in an <a>implementation-defined</a> way.
3313+
upgrades in an <a>implementation-defined</a> way,
33133314
</ul>
3315+
3316+
<p>then return.
33143317
</li>
33153318

33163319
<li>
3317-
<p>If <var>request</var>'s <a for=request>HTTPS upgrade fallback URL</a> is non-null, set
3320+
<p>If <var>request</var>'s <a for=request>HTTPS upgrade fallback URL</a> is non-null, then set
33183321
<a for=request>is HTTPS upgrade</a> to false and <a for=request>HTTPS upgrade fallback URL</a> to
33193322
null and return.
33203323

33213324
<p class=note>This is a fallback request that cannot be upgraded again.
33223325

33233326
<li>
33243327
<p>Otherwise:
3325-
<ul>
3328+
3329+
<ol>
33263330
<li><p>Set <a for=request>HTTPS upgrade fallback URL</a> to <var>request</var>'s
33273331
<a for="request">URL</a>.
33283332

33293333
<li><p>Set <var>request</var>'s <a for="request">URL</a>'s <a for="url">scheme</a> to
33303334
"<code>https</code>".
33313335

33323336
<li><p>Set <a for=request>is HTTPS upgrade</a> to true.
3333-
</ul>
3337+
</ol>
33343338
</li>
33353339
</ol>
33363340
</div>
@@ -3352,13 +3356,13 @@ retried over the original URL.
33523356
<p class=note>This means that the upgrade failed and initiates a fallback load.
33533357

33543358
<ol>
3355-
<li><p>Let <var>serializedFallbackUrl</var> be the <var>request</var>'s
3359+
<li><p>Let <var>serializedFallbackURL</var> be the <var>request</var>'s
33563360
<a for=request>HTTPS upgrade fallback URL</a>, <a lt="URL serializer">serialized</a> and
33573361
<a>isomorphic encoded</a>.
33583362

33593363
<li><p>Let <var>fallbackResponse</var> be a new <a for=/>response</a> whose
33603364
<a for=response>header list</a> is «
3361-
(`<code>Location</code>`, <var>serializedFallbackUrl</var>) » and
3365+
(`<code>Location</code>`, <var>serializedFallbackURL</var>) » and
33623366
<a for="response">status</a> is 307.
33633367

33643368
<li><p>Return <var>fallbackResponse</var>.
@@ -6135,7 +6139,7 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
61356139

61366140
<ol>
61376141
<li><p>If <var>connection</var> is failure, then return the result of running
6138-
<a>HTTPS upgrade fallback</a> given <var>request</var> and <a>network error</a>.
6142+
<a>HTTPS upgrade fallback</a> given <var>request</var> and a <a>network error</a>.
61396143

61406144
<li><p>Set <var>timingInfo</var>'s <a for="fetch timing info">final connection timing info</a> to
61416145
the result of calling <a>clamp and coarsen connection timing info</a> with

0 commit comments

Comments
 (0)