Skip to content

Commit 0d897b8

Browse files
authored
Editorial: add <div algorithm> wrappers to Request class
Related to: #1526.
1 parent 8f8ab50 commit 0d897b8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

fetch.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7506,6 +7506,7 @@ object), initially null.
75067506

75077507
<hr>
75087508

7509+
<div algorithm>
75097510
<p>To <dfn export for=Request lt=create|creating>create</dfn> a {{Request}} object, given a
75107511
<a for=/>request</a> <var>request</var>, <a for=/>headers guard</a> <var>guard</var>, and
75117512
<a>realm</a> <var>realm</var>, run these steps:
@@ -7524,9 +7525,11 @@ object), initially null.
75247525

75257526
<li><p>Return <var>requestObject</var>.
75267527
</ol>
7528+
</div>
75277529

75287530
<hr>
75297531

7532+
<div algorithm>
75307533
<p>The
75317534
<dfn constructor for=Request id=dom-request lt="Request(input, init)"><code>new Request(<var>input</var>, <var>init</var>)</code></dfn>
75327535
constructor steps are:
@@ -7855,7 +7858,7 @@ constructor steps are:
78557858

78567859
<ol>
78577860
<li><p>Let <var>bodyWithType</var> be the result of <a for=BodyInit>extracting</a>
7858-
<var>init</var>["{{RequestInit/body}}"], with <a for=BodyInit/extract><var>keepalive</var></a>
7861+
<var>init</var>["{{RequestInit/body}}"], with <a for=BodyInit/extract><i>keepalive</i></a>
78597862
set to <var>request</var>'s <a for=request>keepalive</a>.
78607863

78617864
<li><p>Set <var>initBody</var> to <var>bodyWithType</var>'s <a for="body with type">body</a>.
@@ -7903,6 +7906,7 @@ constructor steps are:
79037906
<li><p>Set <a>this</a>'s <a for=Request>request</a>'s <a for=request>body</a> to
79047907
<var>finalBody</var>.
79057908
</ol>
7909+
</div>
79067910

79077911
<p>The <dfn attribute for=Request><code>method</code></dfn> getter steps are to return <a>this</a>'s
79087912
<a for=Request>request</a>'s <a for=request>method</a>.
@@ -7916,6 +7920,7 @@ constructor steps are:
79167920
<p>The <dfn attribute for=Request><code>destination</code></dfn> getter are to return <a>this</a>'s
79177921
<a for=Request>request</a>'s <a for=request>destination</a>.
79187922

7923+
<div algorithm>
79197924
<p>The <dfn attribute for=Request><code>referrer</code></dfn> getter steps are:
79207925

79217926
<ol>
@@ -7928,6 +7933,7 @@ constructor steps are:
79287933
<li><p>Return <a>this</a>'s <a for=Request>request</a>'s <a for=request>referrer</a>,
79297934
<a lt="URL serializer">serialized</a>.
79307935
</ol>
7936+
</div>
79317937

79327938
<p>The <dfn attribute for=Request><code>referrerPolicy</code></dfn> getter steps are to return
79337939
<a>this</a>'s <a for=Request>request</a>'s <a for=request>referrer policy</a>.
@@ -7966,6 +7972,7 @@ set; otherwise false.
79667972

79677973
<hr>
79687974

7975+
<div algorithm>
79697976
<p>The <dfn method for=Request><code>clone()</code></dfn> method steps are:
79707977

79717978
<ol>
@@ -7983,6 +7990,7 @@ set; otherwise false.
79837990

79847991
<li><p>Return <var>clonedRequestObject</var>.
79857992
</ol>
7993+
</div>
79867994

79877995

79887996
<h3 id=response-class>Response class</h3>

0 commit comments

Comments
 (0)