diff --git a/url.bs b/url.bs index dd5d571d..831a890d 100644 --- a/url.bs +++ b/url.bs @@ -358,10 +358,12 @@ requires context to be distinguished.

Host parsing

-

The host parser takes a string input, a boolean -isSpecial, and then runs these steps: +

The host parser takes a +string input with an optional boolean isNotSpecial, and then runs these steps:

    +
  1. If isNotSpecial is not given, then set isNotSpecial to false. +

  2. If input starts with U+005B ([), then: @@ -372,7 +374,7 @@ requires context to be distinguished. leading U+005B ([) and trailing U+005D (]) removed.

-
  • If isSpecial is false, then return the result of +

  • If isNotSpecial is true, then return the result of opaque-host parsing input.

  • @@ -1036,7 +1038,8 @@ corresponding port and is listed in the second column on the same elsewhere though. -->

    A URL is special if its scheme is a -special scheme. +special scheme. A URL is not special if its scheme is +not a special scheme.

    A URL includes credentials if its @@ -1715,8 +1718,8 @@ string input, optionally with a base URL base, opti

  • If buffer is the empty string, validation error, return failure. -

  • Let host be the result of host parsing - buffer with url is special. +

  • Let host be the result of host parsing buffer with + url is not special.

  • If host is failure, then return failure. @@ -1748,8 +1751,8 @@ string input, optionally with a base URL base, opti string, and either url includes credentials or url's port is non-null, validation error, return. -

  • Let host be the result of host parsing - buffer with url is special. +

  • Let host be the result of host parsing buffer with + url is not special.

  • If host is failure, then return failure. @@ -1946,8 +1949,8 @@ string input, optionally with a base URL base, opti

    Otherwise, run these steps:

      -
    1. Let host be the result of host parsing - buffer with url is special. +

    2. Let host be the result of host parsing buffer with + url is not special.

    3. If host is failure, then return failure. @@ -2109,7 +2112,7 @@ string input, optionally with a base URL base, opti

      If encoding is not UTF-8 and one of the following is true

      @@ -2603,14 +2606,13 @@ URLPath would be a subclassed Array? -->
    4. Let parsedBase be the result of running the basic URL parser on base. -

    5. If parsedBase is failure, then throw a TypeError exception. +

    6. If parsedBase is failure, then throw a {{TypeError}}.

  • Let parsedURL be the result of running the basic URL parser on url with parsedBase. -

  • If parsedURL is failure, throw a TypeError - exception. +

  • If parsedURL is failure, then throw a {{TypeError}}.

  • Let query be parsedURL's query, if that is non-null, and the empty string otherwise. @@ -2671,7 +2673,7 @@ url.pathname // "/%F0%9F%8F%B3%EF%B8%8F%E2%80%8D%F0%9F%8C%88"

  • Let parsedURL be the result of running the basic URL parser on the given value. -

  • If parsedURL is failure, throw a TypeError exception. +

  • If parsedURL is failure, then throw a {{TypeError}}.

  • Set context object's url to parsedURL. @@ -3064,7 +3066,7 @@ these steps: list name-value pairs with the key being the name and the value being the value. -

    The stringification behavior must return the +

    The stringification behavior must return the serialization of the {{URLSearchParams}} object's list.