From acbcafdf004974062698187f33de7fefbd177e6c Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 2 Dec 2024 10:32:37 +0100 Subject: [PATCH] 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.