From 7e4524e6813309a7a04fd604d79afd7dde0b84b9 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 19 Oct 2021 10:54:00 +0200 Subject: [PATCH] Editorial: align with URL's cannot-be-base-URL removal These URLs now have a path whose value is a string rather than a list. See https://github.com/whatwg/url/pull/655 for context. --- source | 71 ++++++++++++++++++---------------------------------------- 1 file changed, 22 insertions(+), 49 deletions(-) diff --git a/source b/source index 10141ecee58..b5a742d306c 100644 --- a/source +++ b/source @@ -2353,14 +2353,15 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • path
  • query
  • fragment
  • -
  • cannot-be-a-base-URL
  • blob URL entry
  • valid URL string
  • The cannot have a username/password/port concept
  • +
  • The opaque path concept
  • URL serializer and its exclude fragment argument
  • +
  • URL path serializer
  • The host parser
  • The host serializer
  • Host equals
  • @@ -23393,8 +23394,8 @@ document.body.appendChild(wbr);
    1. If element's url is non-null, its scheme is "blob", and its - cannot-be-a-base-URL is true, terminate these steps.

    2. + data-x="concept-url-scheme">scheme is "blob", and it has an + opaque path, then terminate these steps.

    3. Set the url.

    @@ -23568,8 +23569,8 @@ document.body.appendChild(wbr);
  • Let url be this element's url.

  • -
  • If url is null or url's cannot-be-a-base-URL is true, - then return.

  • +
  • If url is null or url has an opaque path, then + return.

  • Basic URL parse the given value, with url as url and host @@ -23604,8 +23605,8 @@ document.body.appendChild(wbr);

  • Let url be this element's url.

  • -
  • If url is null or url's cannot-be-a-base-URL is true, - then return.

  • +
  • If url is null or url has an opaque path, then + return.

  • Basic URL parse the given value, with url as url and hostname @@ -23662,17 +23663,10 @@ document.body.appendChild(wbr);

  • Let url be this element's url.

  • -
  • If url is null, return the empty string.

  • - -
  • If url's cannot-be-a-base-URL is true, then return - url's path[0].

  • - -
  • If url's path is empty, then return the - empty string.

  • +
  • If url is null, then return the empty string.

  • -
  • Return "/", followed by the strings in url's path (including empty strings), separated from each other by - "/".

  • +
  • Return the result of URL path serializing + url.

  • The pathname attribute's setter must run these @@ -23684,8 +23678,8 @@ document.body.appendChild(wbr);

  • Let url be this element's url.

  • -
  • If url is null or url's cannot-be-a-base-URL is true, - then return.

  • +
  • If url is null or url has an opaque path, then + return.

  • Set url's path to the empty list.

  • @@ -85800,7 +85794,7 @@ interface Location { // but see also url.

    -
  • If copyURL's cannot-be-a-base-URL is true, then return.

  • +
  • If copyURL has an opaque path, then return.

  • Basic URL parse the given value, with copyURL as url and host @@ -85843,7 +85837,7 @@ interface Location { // but see also url.

  • -
  • If copyURL's cannot-be-a-base-URL is true, then return.

  • +
  • If copyURL has an opaque path, then return.

  • Basic URL parse the given value, with copyURL as url and hostname @@ -85909,18 +85903,8 @@ interface Location { // but see also origin, then throw a "SecurityError" DOMException.

  • -
  • Let url be this Location object's url.

  • - -
  • If url's cannot-be-a-base-URL is true, then return - url's path[0].

  • - -
  • If url's path is empty, then return the - empty string.

  • - -
  • Return "/", followed by the strings in url's path (including empty strings), separated from each other by - "/".

  • +
  • Return the result of URL path serializing this + Location object's url.

  • The pathname attribute's setter must run these @@ -85938,7 +85922,7 @@ interface Location { // but see also url.

    -
  • If copyURL's cannot-be-a-base-URL is true, then return.

  • +
  • If copyURL has an opaque path, then return.

  • Set copyURL's path to the empty list.

  • @@ -103069,21 +103053,10 @@ interface WorkerLocation {

    The pathname attribute's getter must run these - steps:

    - -
      -
    1. Let url be the associated WorkerGlobalScope object's - url.

    2. - -
    3. If url's cannot-be-a-base-URL is true, then return - url's path[0].

    4. - -
    5. Return "/", followed by the strings in url's path (including empty strings), separated from each other by - "/".

    6. -
    + data-x="dom-WorkerLocation-pathname">pathname getter steps are to return the result + of URL path serializing the associated WorkerGlobalScope object's + url.

    The search attribute's getter must run these