Skip to content

Commit

Permalink
Preserve ids
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Oct 24, 2016
1 parent e2df02a commit 61fd8a3
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4217,7 +4217,7 @@ run these steps:
</ol>

<p>The
<dfn data-export for=Headers type=constructor><code>Headers(<var>init</var>)</code></dfn>
<dfn id=dom-headers data-export for=Headers type=constructor><code>Headers(<var>init</var>)</code></dfn>
constructor, when invoked, must run these steps:

<ol>
Expand Down Expand Up @@ -4331,8 +4331,8 @@ running <a for="header list">sort and combine</a> with the


<h3>Body mixin</h3>

<pre class=idl>typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) BodyInit;
<span id=responsebodyinit></span> <!-- preserving id defined in anolis version of the spec -->
<pre id=bodyinit class=idl>typedef (Blob or BufferSource or FormData or URLSearchParams or USVString) BodyInit;
typedef (BodyInit or ReadableStream) ResponseBodyInit;</pre>

<p>To <dfn id=concept-bodyinit-extract for=BodyInit>extract</dfn> a <a for="/">body</a> and a
Expand Down Expand Up @@ -4587,7 +4587,18 @@ invoked, must return the result of running
https://github.com/slightlyoff/ServiceWorker/issues/318
https://github.com/slightlyoff/ServiceWorker/issues/575 -->

<pre class=idl>typedef (Request or USVString) RequestInfo;

<!-- preserving ids defined in anolis version of the spec -->
<span id=requestinit></span>
<span id=requestinfo></span>
<span id=requesttype></span>
<span id=requestdestination></span>
<span id=requestmode></span>
<span id=requestcredentials></span>
<span id=requestcache></span>
<span id=requestredirect></span>
<pre class=idl>
typedef (Request or USVString) RequestInfo;

[Constructor(RequestInfo input, optional RequestInit init),
Exposed=(Window,Worker)]
Expand All @@ -4610,7 +4621,6 @@ interface Request {
[NewObject] Request clone();
};
Request implements Body;

dictionary RequestInit {
ByteString method;
HeadersInit headers;
Expand Down Expand Up @@ -4653,7 +4663,7 @@ is itself associated with <a for=Request>request</a>'s
<hr>

<p>The
<dfn><code>Request(<var>input</var>, <var>init</var>)</code></dfn>
<dfn id=dom-request><code>Request(<var>input</var>, <var>init</var>)</code></dfn>
constructor must run these steps:

<ol>
Expand Down Expand Up @@ -5033,15 +5043,15 @@ getter must return <a for=Request>request</a>'s
getter must return <a for=Request>request</a>'s
<a for=request>credentials mode</a>.

<p>The <dfn><code>cache</code></dfn> attribute's getter must
<p>The <dfn attribute for=Request><code>cache</code></dfn> attribute's getter must
return <a for=Request>request</a>'s
<a for=request>cache mode</a>.

<p>The <dfn><code>redirect</code></dfn> attribute's getter must
<p>The <dfn attribute for=Request><code>redirect</code></dfn> attribute's getter must
return <a for=Request>request</a>'s
<a for=request>redirect mode</a>.

<p>The <dfn><code>integrity</code></dfn> attribute's getter
<p>The <dfn attribute for=Request><code>integrity</code></dfn> attribute's getter
must return <a for=Request>request</a>'s
<a for=request>integrity metadata</a>.

Expand Down Expand Up @@ -5069,7 +5079,9 @@ run these steps:


<h3>Response class</h3>

<!-- preserving ids defined in anolis version of the spec -->
<span id=responseinit></span>
<span id=responsetype></span>
<pre class=idl>[Constructor(optional ResponseBodyInit? body = null, optional ResponseInit init),
Exposed=(Window,Worker)]
interface Response {
Expand Down Expand Up @@ -5115,7 +5127,7 @@ for the <a><code>trailer</code></a> attribute.</span>
<a for=Response>response</a>'s <a for=response>body</a>.

<p>The
<dfn><code>Response(<var>body</var>, <var>init</var>)</code></dfn>
<dfn id=dom-response><code>Response(<var>body</var>, <var>init</var>)</code></dfn>
constructor, when invoked, must run these steps:

<ol>
Expand Down

0 comments on commit 61fd8a3

Please sign in to comment.