Skip to content

Commit 39b2ff7

Browse files
committed
Add asserts
1 parent a0ed021 commit 39b2ff7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

url.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,9 +787,13 @@ 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>Return the public suffix determined by running the
790+
<li><p>Let <var>publicSuffix</var> be the public suffix determined by running the
791791
<a href="https://github.com/publicsuffix/list/wiki/Format#formal-algorithm">Public Suffix List algorithm</a>
792792
with <var>host</var> as domain. [[!PSL]]
793+
794+
<li><p>Assert: <var>publicSuffix</var> is an <a>ASCII string</a>.
795+
796+
<li><p>Return <var>publicSuffix</var>.
793797
</ol>
794798
</div>
795799

@@ -803,9 +807,13 @@ any.
803807
<li><p>If <var>host</var>'s <a for=host>public suffix</a> is null or <var>host</var>'s
804808
<a for=host>public suffix</a> <a for=host>equals</a> <var>host</var>, then return null.
805809

806-
<li><p>Return the registrable domain determined by running the
810+
<li><p>Let <var>registrableDomain</var> be the registrable domain determined by running the
807811
<a href="https://github.com/publicsuffix/list/wiki/Format#formal-algorithm">Public Suffix List algorithm</a>
808812
with <var>host</var> as domain. [[!PSL]]
813+
814+
<li><p>Assert: <var>registrableDomain</var> is an <a>ASCII string</a>.
815+
816+
<li><p>Return <var>registrableDomain</var>.
809817
</ol>
810818
</div>
811819

0 commit comments

Comments
 (0)