@@ -2660,6 +2660,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
2660
2660
2661
2661
<ul class="brief">
2662
2662
<li><dfn data-x="concept-host" data-x-href="https://url.spec.whatwg.org/#concept-host">host</dfn></li>
2663
+ <li><dfn data-x-href="https://url.spec.whatwg.org/#host-public-suffix">public suffix</dfn></li>
2663
2664
<li><dfn data-x="concept-domain" data-x-href="https://url.spec.whatwg.org/#concept-domain">domain</dfn></li>
2664
2665
<li><dfn data-x-href="https://url.spec.whatwg.org/#concept-ipv4">IPv4 address</dfn></li>
2665
2666
<li><dfn data-x-href="https://url.spec.whatwg.org/#concept-ipv6">IPv6 address</dfn></li>
@@ -79672,28 +79673,24 @@ interface <dfn>BarProp</dfn> {
79672
79673
<li><p>If <var>host</var> is failure, then return false.</p></li>
79673
79674
79674
79675
<li>
79675
- <p>If <var>host</var> is <em> not</em> <span data-x="host equals">equal</span> to
79676
- <var>originalHost</var>, then run these substeps :</p>
79676
+ <p>If <var>host</var> does not <span data-x="host equals">equal</span> <var>originalHost</var>,
79677
+ then:</p>
79677
79678
79678
79679
<ol>
79679
79680
<li>
79680
79681
<p>If <var>host</var> or <var>originalHost</var> is not a <span
79681
79682
data-x="concept-domain">domain</span>, then return false.</p>
79682
79683
79683
- <p class="note">This is meant to exclude <span data-x="concept-host">hosts</span> that are an
79684
- <span>IPv4 address</span> or an <span>IPv6 address</span>.</p>
79684
+ <p class="note">This excludes <span data-x="concept-host">hosts</span> that are an <span>IPv4
79685
+ address</span> or an <span>IPv6 address</span>.</p>
79685
79686
</li>
79686
79687
79687
79688
<li><p>If <var>host</var>, prefixed by a U+002E FULL STOP (.), does not exactly match the end
79688
79689
of <var>originalHost</var>, then return false.</p></li>
79690
+ <!-- This seems okay, but does pretend hosts are strings which URL does not. -->
79689
79691
79690
- <li>
79691
- <p>If <var>host</var> matches a suffix in the Public Suffix List, or, if <var>host</var>,
79692
- prefixed by a U+002E FULL STOP (.), matches the end of a suffix in the Public Suffix List,
79693
- then return false. <ref spec=PSL></p>
79694
-
79695
- <p>Suffixes must be compared after applying the <span>host parser</span> algorithm.</p>
79696
- </li>
79692
+ <li><p>If <var>host</var> <span data-x="host equals">equals</span> <var>host</var>'s
79693
+ <span>public suffix</span>, then return false. <ref spec=URL></p></li>
79697
79694
</ol>
79698
79695
</li>
79699
79696
@@ -120316,10 +120313,6 @@ INSERT INTERFACES HERE
120316
120313
<dt id="refsPRESENTATION">[PRESENTATION]</dt>
120317
120314
<dd><cite><a href="https://w3c.github.io/presentation-api/">Presentation API</a></cite>, M. Foltz, D. Röttsches. W3C.</dd>
120318
120315
120319
- <dt id="refsPSL">[PSL]</dt>
120320
- <dd><cite><a href="https://publicsuffix.org/">Public Suffix List</a></cite>.
120321
- Mozilla Foundation.</dd>
120322
-
120323
120316
<dt id="refsREFERRERPOLICY">[REFERRERPOLICY]</dt>
120324
120317
<dd><cite><a href="https://w3c.github.io/webappsec-referrer-policy/">Referrer Policy</a></cite>, J. Eisinger, E. Stark. W3C.</dd>
120325
120318
0 commit comments