Skip to content

Commit 9ca4bda

Browse files
committedSep 6, 2023
Editorial: clarify response's URL list
Mainly to give myself more confidence about whatwg/html#9695.
1 parent f64d43f commit 9ca4bda

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
 

‎fetch.bs

+7-8
Original file line numberDiff line numberDiff line change
@@ -2321,8 +2321,7 @@ source of security bugs. Please seek security review for features that deal with
23212321
<li><p>Assert: <var>response</var>'s <a for=response>URL list</a> <a for=list>is not empty</a>.
23222322

23232323
<li>
2324-
<p>Let <var>url</var> be a copy of <var>response</var>'s <a for=response>URL list</a>'s first
2325-
element.
2324+
<p>Let <var>url</var> be a copy of <var>response</var>'s <a for=response>URL list</a>[0].
23262325

23272326
<p class="note">This is not <var>response</var>'s <a for=response>URL</a> in order to avoid
23282327
leaking information about redirect targets (see
@@ -2393,8 +2392,8 @@ end-user.
23932392
<dfn export for=response id=concept-response-url-list>URL list</dfn> (a <a for=/>list</a> of zero or
23942393
more <a for=/>URLs</a>). Unless stated otherwise, it is « ».
23952394

2396-
<p class=note>Except for the last <a for=/>URL</a>, if any, a <a for=/>response</a>'s
2397-
<a for=response>URL list</a> is not exposed to script as that would violate
2395+
<p class=note>Except for the first and last <a for=/>URL</a>, if any, a <a for=/>response</a>'s
2396+
<a for=response>URL list</a> is not directly exposed to script as that would violate
23982397
<a>atomic HTTP redirect handling</a>.
23992398

24002399
<p>A <a for=/>response</a> has an associated
@@ -4634,8 +4633,8 @@ steps:
46344633
<p>If <var>internalResponse</var>'s <a for=response>URL list</a> <a for=list>is empty</a>, then
46354634
set it to a <a for=list>clone</a> of <var>request</var>'s <a for=request>URL list</a>.
46364635

4637-
<p class=note>A <a for=/>response</a>'s <a for=response>URL list</a> can be empty (for example,
4638-
when the response represents an <code>about</code> URL).
4636+
<p class=note>A <a for=/>response</a>'s <a for=response>URL list</a> can be empty, e.g., when
4637+
fetching an <code>about:</code> URL.
46394638
<!-- If you are ever tempted to move this around, carefully consider responses from about URLs,
46404639
blob URLs, service workers, HTTP cache, HTTP network, etc. -->
46414640

@@ -8318,8 +8317,8 @@ otherwise <a>this</a>'s <a for=Response>response</a>'s <a for=response>URL</a>,
83188317
to true.
83198318

83208319
<p>The <dfn attribute for=Response><code>redirected</code></dfn> getter steps are to return true if
8321-
<a>this</a>'s <a for=Response>response</a>'s <a for=response>URL list</a> has more than one item;
8322-
otherwise false.
8320+
<a>this</a>'s <a for=Response>response</a>'s <a for=response>URL list</a>'s <a for=list>size</a> is
8321+
greater than 1; otherwise false.
83238322

83248323
<p class=note>To filter out <a for=/>responses</a> that are the result of a
83258324
redirect, do this directly through the API, e.g., <code>fetch(url, { redirect:"error" })</code>.

0 commit comments

Comments
 (0)
Please sign in to comment.