diff --git a/url.bs b/url.bs index bbe39ee2..3f412834 100644 --- a/url.bs +++ b/url.bs @@ -2637,8 +2637,12 @@ does return a port so one might have assumed the setter to cannot-be-a-base-URL flag is set, or its scheme is "file", terminate these steps. -
  • Basic URL parse the given value with context object's - url as url and port state as state override. +

  • If the given value is the empty string, then set url's port to + null.

  • + +
  • Otherwise, basic URL parse the given value with + context object's url as url and port state as + state override.

    The pathname attribute's getter must run these steps: diff --git a/url.html b/url.html index 948563af..71c9fa27 100644 --- a/url.html +++ b/url.html @@ -1945,7 +1945,10 @@

    context object’s url’s host is null, its cannot-be-a-base-URL flag is set, or its scheme is "file", terminate these steps.

  • -

    Basic URL parse the given value with context object’s url as url and port state as state override.

    +

    If the given value is the empty string, then set url’s port to + null.

    +
  • +

    Otherwise, basic URL parse the given value with context object’s url as url and port state as state override.

    The pathname attribute’s getter must run these steps: