Skip to content

Commit

Permalink
Editorial: align with Fetch's change to tuples
Browse files Browse the repository at this point in the history
See whatwg/fetch#1339 for context.
  • Loading branch information
annevk authored Oct 25, 2021
1 parent 217c973 commit 7fcb4ea
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2172,6 +2172,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn id="ascii-letters" data-x-href="https://infra.spec.whatwg.org/#ascii-alpha">ASCII alpha</dfn></li>
<li><dfn id="alphanumeric-ascii-characters" data-x-href="https://infra.spec.whatwg.org/#ascii-alphanumeric">ASCII alphanumeric</dfn></li>
<li><dfn data-x-href="https://infra.spec.whatwg.org/#isomorphic-decode">isomorphic decode</dfn></li>
<li><dfn data-x-href="https://infra.spec.whatwg.org/#isomorphic-encode">isomorphic encode</dfn></li>
<li><dfn data-x="converted to ASCII lowercase" data-x-href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</dfn></li>
<li><dfn data-x="converted to ASCII uppercase" data-x-href="https://infra.spec.whatwg.org/#ascii-uppercase">ASCII uppercase</dfn></li>
<li><dfn data-x-href="https://infra.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</dfn></li>
Expand Down Expand Up @@ -30701,9 +30702,9 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
<p><i>Navigate to the srcdoc resource</i>: <span>navigate an <code>iframe</code> or
<code>frame</code></span> given <var>element</var> and a new <span
data-x="concept-response">response</span> whose <span data-x="concept-response-url-list">URL
list</span> consists of <code>about:srcdoc</code>, <span
data-x="concept-response-header-list">header list</span> consists of `<code
data-x="">Content-Type</code>`/`<code>text/html</code>`, and <span
list</span> is « <code>about:srcdoc</code> », <span
data-x="concept-response-header-list">header list</span> is « (`<code
data-x="">Content-Type</code>`, `<code>text/html</code>`) », and <span
data-x="concept-response-body">body</span> is the value of <var>element</var>'s <code
data-x="attr-iframe-srcdoc">srcdoc</code> attribute.</p>

Expand Down Expand Up @@ -56818,7 +56819,7 @@ fur
<p>Set <var>body</var> to the result of <span data-x="UTF-8 encode">encoding</span>
<var>body</var>.</p>

<p>Let <var>MIME type</var> be "<code>application/x-www-form-urlencoded</code>".</p>
<p>Let <var>mimeType</var> be `<code>application/x-www-form-urlencoded</code>`.</p>
</dd>

<dt><code data-x="attr-fs-enctype-formdata">multipart/form-data</code></dt>
Expand All @@ -56828,11 +56829,11 @@ fur
data-x="">multipart/form-data</code> encoding algorithm</span> with <var>entry list</var>
and <var>encoding</var>.</p>

<p>Let <var>MIME type</var> be the concatenation of the string "<code
data-x="">multipart/form-data;</code>", a U+0020 SPACE character, the string "<code
data-x="">boundary=</code>", and the <span><code data-x="">multipart/form-data</code>
boundary string</span> generated by the <span><code data-x="">multipart/form-data</code>
encoding algorithm</span>.</p>
<p>Let <var>mimeType</var> be the <span data-x="isomorphic encode">isomorphic
encoding</span> of the concatenation of "<code
data-x="">multipart/form-data; boundary=</code>" and the <span><code
data-x="">multipart/form-data</code> boundary string</span> generated by the <span><code
data-x="">multipart/form-data</code> encoding algorithm</span>.</p>
</dd>

<dt><code data-x="attr-fs-enctype-text">text/plain</code></dt>
Expand All @@ -56847,15 +56848,15 @@ fur
<p>Set <var>body</var> to the result of <span data-x="encode">encoding</span>
<var>body</var> using <var>encoding</var>.</p>

<p>Let <var>MIME type</var> be "<code data-x="">text/plain</code>".</p>
<p>Let <var>mimeType</var> be `<code data-x="">text/plain</code>`.</p>
</dd>
</dl>

<p><span>Plan to navigate</span> to a new <span data-x="concept-request">request</span> whose
<span data-x="concept-request-url">URL</span> is <var>parsed action</var>, <span
data-x="concept-request-method">method</span> is <var>method</var>, <span
data-x="concept-request-header-list">header list</span> consists of `<code
data-x="">Content-Type</code>`/<var>MIME type</var>, and <span
data-x="concept-request-header-list">header list</span> is « (`<code
data-x="">Content-Type</code>`, <var>mimeType</var>) », and <span
data-x="concept-request-body">body</span> is <var>body</var>.</p>
</dd>

Expand Down Expand Up @@ -87374,8 +87375,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<li>
<p>If <span data-x="js-Type">Type</span>(<var>result</var>) is String, then set
<var>response</var> to a <span data-x="concept-response">response</span> whose <span
data-x="concept-response-header-list">header list</span> consists of
`<code>Content-Type</code>`/`<code data-x="">text/html;charset=utf-8</code>`, and whose <span
data-x="concept-response-header-list">header list</span> is « (`<code>Content-Type</code>`,
`<code data-x="">text/html;charset=utf-8</code>`) », and whose <span
data-x="concept-response-body">body</span> is the result of <span data-x="UTF-8 encode">UTF-8
encoding</span> <var>result</var>.</p>

Expand Down Expand Up @@ -98664,8 +98665,8 @@ dictionary <dfn dictionary>EventSourceInit</dfn> {
<li><p>Set <var>request</var>'s <span data-x="concept-request-client">client</span> to
<var>settings</var>.</p></li>

<li><p>User agents may <span data-x="concept-header-list-set">set</span> `<code
data-x="http-accept">Accept</code>`/`<code>text/event-stream</code>` in <var>request</var>'s
<li><p>User agents may <span data-x="concept-header-list-set">set</span> (`<code
data-x="http-accept">Accept</code>`, `<code>text/event-stream</code>`) in <var>request</var>'s
<span data-x="concept-request-header-list">header list</span>.</p></li>

<li><p>Set <var>request</var>'s <span data-x="concept-request-cache-mode">cache mode</span> to
Expand Down Expand Up @@ -98844,18 +98845,26 @@ dictionary <dfn dictionary>EventSourceInit</dfn> {
<ol>
<li><p>If the <code>EventSource</code> object's <code
data-x="dom-EventSource-readyState">readyState</code> attribute is not set to <code
data-x="dom-EventSource-CONNECTING">CONNECTING</code>, return.</p></li>
data-x="dom-EventSource-CONNECTING">CONNECTING</code>, then return.</p></li>

<li><p>Let <var>request</var> be the <code>EventSource</code> object's <span
data-x="concept-event-stream-request">request</span>.

<li><p>If the <code>EventSource</code> object's <span
data-x="concept-event-stream-last-event-id">last event ID string</span> is not the empty
string, <span data-x="concept-header-list-set">set</span> `<code
data-x="http-last-event-id">Last-Event-ID</code>`/<span
data-x="concept-event-stream-last-event-id">last event ID string</span>, <span data-x="UTF-8
encode">encoded as UTF-8</span>, in <var>request</var>'s <span
data-x="concept-request-header-list">header list</span>.</p></li>
<li>
<p>If the <code>EventSource</code> object's <span
data-x="concept-event-stream-last-event-id">last event ID string</span> is not the empty
string, then:</p>

<ol>
<li><p>Let <var>lastEventIDValue</var> be the <code>EventSource</code> object's <span
data-x="concept-event-stream-last-event-id">last event ID string</span>, <span data-x="UTF-8
encode">encoded as UTF-8</span>.</p></li>

<li><p><span data-x="concept-header-list-set">Set</span> (`<code
data-x="http-last-event-id">Last-Event-ID</code>`, <var>lastEventIDValue</var>) in
<var>request</var>'s <span data-x="concept-request-header-list">header list</span>.</p></li>
</ol>
</li>

<!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var> and process the
response obtained in this fashion, if any, as described earlier in this section.</p></li>
Expand Down

0 comments on commit 7fcb4ea

Please sign in to comment.