diff --git a/url.bs b/url.bs index f9da78dc..05d48f22 100644 --- a/url.bs +++ b/url.bs @@ -284,9 +284,13 @@ U+005C (\), or U+005D (]).
  1. If host is not a domain, then return null. -

  2. Return the public suffix obtained by executing the - algorithm defined by the Public Suffix List on - host. [[!PSL]]. +

  3. Let publicSuffix be the public suffix determined by running the + Public Suffix List algorithm with host as + domain. [[!PSL]] + +

  4. Assert: publicSuffix is an ASCII string. + +

  5. Return publicSuffix.

A host's registrable domain is a domain formed by @@ -297,9 +301,13 @@ obtain host's registrable domain, run these steps:

  • If host's public suffix is null or host's public suffix equals host, then return null. -

  • Return the registrable domain obtained by executing the - algorithm defined by the Public Suffix List on - host. [[!PSL]] +

  • Let registrableDomain be the registrable domain determined by running the + Public Suffix List algorithm with host as + domain. [[!PSL]] + +

  • Assert: registrableDomain is an ASCII string. + +

  • Return registrableDomain.