From a6e4492001454d3d823108a4c48d77a6ad4eead5 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 29 Nov 2024 11:03:26 +0100 Subject: [PATCH] Set IDNA's IgnoreInvalidPunycode to false Also move UseSTD3ASCIIRules around in Unicode ToASCII to align with the UTS46 order. While this is not a change in behavior, this is not marked as editorial as UTS46 integration is somewhat significant and worth highlighting. Fixes #821. --- url.bs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/url.bs b/url.bs index 0651aaa..605b4cd 100644 --- a/url.bs +++ b/url.bs @@ -905,10 +905,10 @@ concepts.
  1. Let result be the result of running Unicode ToASCII - with domain_name set to domain, UseSTD3ASCIIRules set to - beStrict, CheckHyphens set to beStrict, CheckBidi set to true, - CheckJoiners set to true, Transitional_Processing set to false, - and VerifyDnsLength set to beStrict. [[!UTS46]] + with domain_name set to domain, CheckHyphens set to beStrict, + CheckBidi set to true, CheckJoiners set to true, UseSTD3ASCIIRules set to + beStrict, Transitional_Processing set to false, VerifyDnsLength set to + beStrict, and IgnoreInvalidPunycode set to false. [[!UTS46]]

    If beStrict is false, domain is an ASCII string, and strictly splitting domain on U+002E (.) does not produce any @@ -937,8 +937,8 @@ concepts.

  2. Let result be the result of running Unicode ToUnicode with domain_name set to domain, CheckHyphens set to beStrict, CheckBidi set to true, CheckJoiners - set to true, UseSTD3ASCIIRules set to beStrict, and - Transitional_Processing set to false. [[!UTS46]] + set to true, UseSTD3ASCIIRules set to beStrict, Transitional_Processing + set to false, and IgnoreInvalidPunycode set to false. [[!UTS46]]

  3. Signify domain-to-Unicode validation errors for any returned errors, and then, return result.