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.
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:
If isNotSpecial is not given, then set isNotSpecial to false. +
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.
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:
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. @@ -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
url is not special +
url is not special
url's scheme is "ws
" or "wss
"
Let parsedBase be the result of running the basic URL parser on base. -
If parsedBase is failure, then throw a TypeError
exception.
+
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.