Skip to content

Commit

Permalink
Correct and add to PSL examples
Browse files Browse the repository at this point in the history
The ASCII prefix is xn--, not xn-. Also add an example where the public suffix is null as callers used to forget about it.

Closes #471.
  • Loading branch information
annevk authored Mar 27, 2020
1 parent 0ce82da commit 7fbd29c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ obtain <var>host</var>'s <a for=host>registrable domain</a>, run these steps:
<tr>
<td><code>com</code>
<td><code>com</code>
<td><i>null</i>
<td>null
<tr>
<td><code>example.com</code>
<td><code>com</code>
Expand All @@ -331,23 +331,27 @@ obtain <var>host</var>'s <a for=host>registrable domain</a>, run these steps:
<tr>
<td><code>github.io</code>
<td><code>github.io</code>
<td><i>null</i>
<td>null
<tr>
<td><code>whatwg.github.io</code>
<td><code>github.io</code>
<td><code>whatwg.github.io</code>
<tr>
<td><code>إختبار</code>
<td><code>xn-kgbechtv</code>
<td><i>null</i>
<td><code>xn--kgbechtv</code>
<td>null
<tr>
<td><code>example.إختبار</code>
<td><code>xn-kgbechtv</code>
<td><code>example.xn-kgbechtv</code>
<td><code>xn--kgbechtv</code>
<td><code>example.xn--kgbechtv</code>
<tr>
<td><code>sub.example.إختبار</code>
<td><code>xn-kgbechtv</code>
<td><code>example.xn-kgbechtv</code>
<td><code>xn--kgbechtv</code>
<td><code>example.xn--kgbechtv</code>
<tr>
<td><code>[2001:0db8:85a3:0000:0000:8a2e:0370:7334]</code>
<td>null
<td>null
</table>
</div>

Expand Down

0 comments on commit 7fbd29c

Please sign in to comment.