From acbcafdf004974062698187f33de7fefbd177e6c Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 2 Dec 2024 10:32:37 +0100 Subject: [PATCH 1/2] Editorial: only care about the empty string when beStrict is false VerifyDnsLength will take care of it otherwise. (See #497 for additional context.) --- url.bs | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/url.bs b/url.bs index b7471a4..72b571e 100644 --- a/url.bs +++ b/url.bs @@ -917,19 +917,24 @@ concepts.
  • If result is a failure value, domain-to-ASCII validation error, return failure. -

  • If result is the empty string, domain-to-ASCII validation error, - return failure. -

  • -

    If beStrict is false and result contains a - forbidden domain code point, domain-invalid-code-point validation error, - return failure. +

    If beStrict is false: + +

      +
    1. If result is the empty string, domain-to-ASCII validation error, + return failure. + +

    2. +

      If result contains a forbidden domain code point, + domain-invalid-code-point validation error, return failure. -

      Due to web compatibility and compatibility with non-DNS-based systems the - forbidden domain code points are a subset of those disallowed when UseSTD3ASCIIRules - is true. See also issue #397. +

      Due to web compatibility and compatibility with non-DNS-based systems the + forbidden domain code points are a subset of those disallowed when + UseSTD3ASCIIRules is true. See also + issue #397. +

    -
  • Assert: result does not contain a +

  • Assert: result is not the empty string and does not contain a forbidden domain code point.

  • Return result. From d4110e014b983cff1a193bc4e32a8243ee3df936 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 2 Dec 2024 17:08:06 +0100 Subject: [PATCH 2/2] Update url.bs --- url.bs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/url.bs b/url.bs index 72b571e..25622de 100644 --- a/url.bs +++ b/url.bs @@ -934,8 +934,12 @@ concepts. issue #397. -

  • Assert: result is not the empty string and does not contain a - forbidden domain code point. +

  • +

    Assert: result is not the empty string and does not contain a + forbidden domain code point. + +

    Unicode IDNA Compatibility Processing guarantees this holds when + beStrict is true. [[UTS46]]

  • Return result.