diff --git a/source b/source index d928222a11e..037c331c99a 100644 --- a/source +++ b/source @@ -3400,6 +3400,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute custom element registry, allow declarative shadow roots, and content type of a Document +
  • The get the base URL algorithm and + base URL override of a Document
  • The distinction between XML documents and HTML documents
  • The terms quirks mode, @@ -7755,16 +7757,29 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute URL record obtained by running these steps:

      -
    1. If document has no descendant base element that has - an href attribute, then return document's - fallback base URL.

    2. +
    3. +

      If document has no descendant base element that has an + href attribute:

      + +
        +
      1. If document's base URL override is non-null, then return + document's base URL override.

      2. -
      3. Otherwise, return the frozen base URL of the first base element - in document that has an href attribute, in +

      4. Return document's fallback base URL.

      5. +
      +
    4. + +
    5. Return the frozen base URL of the first base element in + document that has an href attribute, in tree order.

    +
    +

    A Document document's get the base URL algorithm returns + document's document base URL.

    +
    +

    The fallback base URL of a Document object document is the URL record obtained by running these steps: