Skip to content

Commit

Permalink
Editorial: consistify clone() method of Request and Response
Browse files Browse the repository at this point in the history
And address a cross-reference problem and unreachable return.
  • Loading branch information
annevk committed Jan 12, 2021
1 parent 07ef806 commit 4b5c7d8
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6359,18 +6359,10 @@ set; otherwise false.

<li><p>Set <var>clonedRequestObject</var>'s <a for=Request>request</a> to <var>clonedRequest</var>.

<li>
<p>Set <var>clonedRequestObject</var>'s <a for=Request>headers</a> to a new {{Headers}} object
with the following properties:

<dl>
<dt><a for=Headers>header list</a>
<dd><var>clonedRequest</var>'s <a for=Headers>header list</a>.

<dt><a for=Headers>guard</a>
<dd><a>This</a>'s <a for=Request>headers</a>'s <a for=Headers>guard</a>.
</dl>
</li>
<li><p>Set <var>clonedRequestObject</var>'s <a for=Request>headers</a> to a new {{Headers}} object
whose <a for=Headers>header list</a> is <var>clonedRequest</var>'s <a for=Headers>header list</a>
and <a for=Headers>guard</a> is <a>this</a>'s <a for=Request>headers</a>'s
<a for=Headers>guard</a>.

<li><p>Make <var>clonedRequestObject</var>'s <a for=Request>signal</a>
<a for=AbortSignal>follow</a> <a>this</a>'s <a for=Request>signal</a>.
Expand Down Expand Up @@ -6564,14 +6556,12 @@ otherwise false.
<li><p>Set <var>clonedResponseObject</var>'s <a for=Response>response</a> to
<var>clonedResponse</var>.

<li><p>Set <var>clonedResponseObject</var>'s <a for=Request>headers</a> to a new {{Headers}} object
whose <a for=Headers>header list</a> is set to <var>clonedResponse</var>'s
<a for=Headers>header list</a>, and <a for=Headers>guard</a> is <a>this</a>'s
<li><p>Set <var>clonedResponseObject</var>'s <a for=Response>headers</a> to a new {{Headers}}
object whose <a for=Headers>header list</a> is <var>clonedResponse</var>'s
<a for=Headers>header list</a> and <a for=Headers>guard</a> is <a>this</a>'s
<a for=Response>headers</a>'s <a for=Headers>guard</a>.

<li><p>Return <var>clonedResponseObject</var>.

<li><p>Return <var>clonedResponse</var>.
</ol>


Expand Down

0 comments on commit 4b5c7d8

Please sign in to comment.