From cc03e7b671db1e68140078453c1c7e03e8006348 Mon Sep 17 00:00:00 2001 From: Mike West Date: Mon, 4 Jun 2018 09:32:04 +0200 Subject: [PATCH] fixup examples and warnings --- url.bs | 48 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/url.bs b/url.bs index 295dfe80..d953235f 100644 --- a/url.bs +++ b/url.bs @@ -273,7 +273,7 @@ U+0020 SPACE, U+0023 (#), U+0025 (%), U+002F (/), U+003A (:), U+003F (?), U+0040 U+005C (\), or U+005D (]).

A host's public suffix is the portion of a -host which is controlled by a registrar, public or otherwise. To obtain +host which is included on the Public Suffix List [[!PSL]]. To obtain host's public suffix, run these steps:

    @@ -290,8 +290,7 @@ these steps:
    1. If host's public suffix is null or host's - public suffix equals host, then return - null. + public suffix equals host, then return null.

    2. Return the registrable domain obtained by executing the algorithm defined by the Public Suffix List on @@ -307,7 +306,7 @@ these steps: com com - + null example.com com @@ -327,11 +326,7 @@ these steps: github.io github.io - - - whatwg.github.io - github.io - whatwg.github.io + null whatwg.github.io github.io @@ -339,7 +334,7 @@ these steps: إختبار xn-kgbechtv - + null example.إختبار xn-kgbechtv @@ -355,11 +350,42 @@ these steps: same site with each other if either of the following statements are true:

      +
      +

      Assuming that suffix.example is a public suffix, and that + example.com is not: + +

        +
      • example.com, sub.example.com, other.example.com, + sub.sub.example.com, and sub.other.example.com are all same site + with each other (and themselves), as each host's registrable domain is + example.com. + +

      • registrable.suffix.example, sub.registrable.suffix.example, + other.registrable.suffix.example, sub.sub.registrable.suffix.example, + and sub.other.registrable.suffix.example are all same site with each other + (and themselves), as each host's registrable domain is + registrable.suffix.example. + +

      • example.com and registrable.suffix.example are not same + site with each other, as their registrable domains differ. + +

      • suffix.example is not same site with suffix.example, as + it is a public suffix, and therefore has a null registrable + domain. +

      +
      + +

      Specifications should avoid relying on "public suffix", +"registrable domain", and "same site". The public suffix list will diverge +from client to client, and cannot be relied-upon to provide a hard security boundary.

      +

      IDNA