@@ -787,11 +787,15 @@ that is included on the <cite>Public Suffix List</cite>. [[!PSL]]
787787<ol>
788788 <li><p> If <var> host</var> is not a <a>domain</a> , then return null.
789789
790+ <li><p> Let <var> trailingDot</var> be "<code> .</code> " if <var> host</var>
791+ <a for=string>ends with</a> "<code> .</code> "; otherwise the empty string.
792+
790793 <li><p> Let <var> publicSuffix</var> be the public suffix determined by running the
791794 <a href="https://github.com/publicsuffix/list/wiki/Format#formal-algorithm">Public Suffix List algorithm</a>
792795 with <var> host</var> as domain. [[!PSL]]
793796
794- <li><p> Assert: <var> publicSuffix</var> is an <a>ASCII string</a> .
797+ <li><p> Assert: <var> publicSuffix</var> is an <a>ASCII string</a> that ends with
798+ <var> trailingDot</var> .
795799
796800 <li><p> Return <var> publicSuffix</var> .
797801</ol>
@@ -807,11 +811,15 @@ any.
807811 <li><p> If <var> host</var> 's <a for=host>public suffix</a> is null or <var>host</var>' s
808812 <a for=host>public suffix</a> <a for=host>equals</a> <var> host</var> , then return null.
809813
814+ <li><p> Let <var> trailingDot</var> be "<code> .</code> " if <var> host</var>
815+ <a for=string>ends with</a> "<code> .</code> "; otherwise the empty string.
816+
810817 <li><p> Let <var> registrableDomain</var> be the registrable domain determined by running the
811818 <a href="https://github.com/publicsuffix/list/wiki/Format#formal-algorithm">Public Suffix List algorithm</a>
812819 with <var> host</var> as domain. [[!PSL]]
813820
814- <li><p> Assert: <var> registrableDomain</var> is an <a>ASCII string</a> .
821+ <li><p> Assert: <var> registrableDomain</var> is an <a>ASCII string</a> that ends with
822+ <var> trailingDot</var> .
815823
816824 <li><p> Return <var> registrableDomain</var> .
817825</ol>
0 commit comments