From bcda7d23040a88c31365a115ff8a897207ee2396 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 22 Oct 2021 11:42:39 +0200 Subject: [PATCH 1/4] Editorial: align with Fetch's change to tuples See https://github.com/whatwg/fetch/pull/1339 for context. --- source | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/source b/source index 0e8b6b93a61..15ee345402a 100644 --- a/source +++ b/source @@ -30702,8 +30702,8 @@ interface HTMLIFrameElement : HTMLElement { frame given element and a new response whose URL list consists of about:srcdoc, header list consists of `Content-Type`/`text/html`, and header list consists of (`Content-Type`, `text/html`), and body is the value of element's srcdoc attribute.

@@ -56854,8 +56854,8 @@ fur

Plan to navigate to a new request whose URL is parsed action, method is method, header list consists of `Content-Type`/MIME type, and header list consists of (`Content-Type`, MIME type), and body is body.

@@ -87375,9 +87375,9 @@ interface Location { // but see also Type(result) is String, then set response to a response whose header list consists of - `Content-Type`/`text/html;charset=utf-8`, and whose body is the result of UTF-8 - encoding result.

+ (`Content-Type`, `text/html;charset=utf-8`), and whose + body is the result of UTF-8 encoding result.

The encoding to UTF-8 means that unpaired surrogates will not roundtrip, once the HTML parser decodes the @@ -98660,8 +98660,8 @@ dictionary EventSourceInit {

  • Set request's client to settings.

  • -
  • User agents may set `Accept`/`text/event-stream` in request's +

  • User agents may set (`Accept`, `text/event-stream`) in request's header list.

  • Set request's cache mode to @@ -98840,18 +98840,26 @@ dictionary EventSourceInit {

    1. If the EventSource object's readyState attribute is not set to CONNECTING, return.

    2. + data-x="dom-EventSource-CONNECTING">CONNECTING, then return.

    3. Let request be the EventSource object's request. -

    4. If the EventSource object's last event ID string is not the empty - string, set `Last-Event-ID`/last event ID string, encoded as UTF-8, in request's header list.

    5. +
    6. +

      If the EventSource object's last event ID string is not the empty + string, then:

      + +
        +
      1. Let lastEventIDValue be the EventSource object's last event ID string, encoded as UTF-8.

      2. + +
      3. Set (`Last-Event-ID`, lastEventIDValue) in + request's header list.

      4. +
      +
    7. Fetch request and process the response obtained in this fashion, if any, as described earlier in this section.

    8. From 17c95e3db331f794e52285a51b32ab52a4c8bc88 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 25 Oct 2021 08:37:27 +0200 Subject: [PATCH 2/4] review --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index 15ee345402a..8000555d1b4 100644 --- a/source +++ b/source @@ -30702,8 +30702,8 @@ interface HTMLIFrameElement : HTMLElement { frame given element and a new response whose URL list consists of about:srcdoc, header list consists of (`Content-Type`, `text/html`), and header list is « (`Content-Type`, `text/html`) », and body is the value of element's srcdoc attribute.

      From 4b129d3edf17ea958f963767d051126ba1ef7f3e Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 25 Oct 2021 08:51:38 +0200 Subject: [PATCH 3/4] also address URL list --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 8000555d1b4..8d35c8a0e3f 100644 --- a/source +++ b/source @@ -30701,7 +30701,7 @@ interface HTMLIFrameElement : HTMLElement {

      Navigate to the srcdoc resource: navigate an iframe or frame given element and a new response whose URL - list consists of about:srcdoc, is « about:srcdoc », header list is « (`Content-Type`, `text/html`) », and body is the value of element's Date: Mon, 25 Oct 2021 09:04:25 +0200 Subject: [PATCH 4/4] actually address the review + do some needed string -> byte conversion --- source | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/source b/source index 8d35c8a0e3f..cc1626c246a 100644 --- a/source +++ b/source @@ -2172,6 +2172,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

    9. ASCII alpha
    10. ASCII alphanumeric
    11. isomorphic decode
    12. +
    13. isomorphic encode
    14. ASCII lowercase
    15. ASCII uppercase
    16. ASCII case-insensitive
    17. @@ -56818,7 +56819,7 @@ fur

      Set body to the result of encoding body.

      -

      Let MIME type be "application/x-www-form-urlencoded".

      +

      Let mimeType be `application/x-www-form-urlencoded`.

      multipart/form-data
      @@ -56828,11 +56829,11 @@ fur data-x="">multipart/form-data
      encoding algorithm with entry list and encoding.

      -

      Let MIME type be the concatenation of the string "multipart/form-data;", a U+0020 SPACE character, the string "boundary=", and the multipart/form-data - boundary string generated by the multipart/form-data - encoding algorithm.

      +

      Let mimeType be the isomorphic + encoding of the concatenation of "multipart/form-data; boundary=" and the multipart/form-data boundary string generated by the multipart/form-data encoding algorithm.

      text/plain
      @@ -56847,15 +56848,15 @@ fur

      Set body to the result of encoding body using encoding.

      -

      Let MIME type be "text/plain".

      +

      Let mimeType be `text/plain`.

      Plan to navigate to a new request whose URL is parsed action, method is method, header list consists of (`Content-Type`, MIME type), and header list is « (`Content-Type`, mimeType) », and body is body.

      @@ -87374,10 +87375,10 @@ interface Location { // but see also
      Type(result) is String, then set response to a response whose header list consists of - (`Content-Type`, `text/html;charset=utf-8`), and whose - body is the result of UTF-8 encoding result.

      + data-x="concept-response-header-list">header list is « (`Content-Type`, + `text/html;charset=utf-8`) », and whose body is the result of UTF-8 + encoding result.

      The encoding to UTF-8 means that unpaired surrogates will not roundtrip, once the HTML parser decodes the