Skip to content

Commit

Permalink
Set IDNA's IgnoreInvalidPunycode to false
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
annevk committed Nov 29, 2024
1 parent cd8f1d6 commit a6e4492
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions url.bs
Original file line number Diff line number Diff line change
Expand Up @@ -905,10 +905,10 @@ concepts.
<ol>
<li>
<p>Let <var>result</var> be the result of running <a abstract-op lt=ToASCII>Unicode ToASCII</a>
with <i>domain_name</i> set to <var>domain</var>, <i>UseSTD3ASCIIRules</i> set to
<var>beStrict</var>, <i>CheckHyphens</i> set to <var>beStrict</var>, <i>CheckBidi</i> set to true,
<i>CheckJoiners</i> set to true, <i>Transitional_Processing</i> set to false,
and <i>VerifyDnsLength</i> set to <var>beStrict</var>. [[!UTS46]]
with <i>domain_name</i> set to <var>domain</var>, <i>CheckHyphens</i> set to <var>beStrict</var>,
<i>CheckBidi</i> set to true, <i>CheckJoiners</i> set to true, <i>UseSTD3ASCIIRules</i> set to
<var>beStrict</var>, <i>Transitional_Processing</i> set to false, <i>VerifyDnsLength</i> set to
<var>beStrict</var>, and <i>IgnoreInvalidPunycode</i> set to false. [[!UTS46]]

<p class=note>If <var>beStrict</var> is false, <var>domain</var> is an <a>ASCII string</a>, and
<a>strictly splitting</a> <var>domain</var> on U+002E (.) does not produce any
Expand Down Expand Up @@ -937,8 +937,8 @@ concepts.
<li><p>Let <var>result</var> be the result of running
<a abstract-op lt=ToUnicode>Unicode ToUnicode</a> with <i>domain_name</i> set to <var>domain</var>,
<i>CheckHyphens</i> set to <var>beStrict</var>, <i>CheckBidi</i> set to true, <i>CheckJoiners</i>
set to true, <i>UseSTD3ASCIIRules</i> set to <var>beStrict</var>, and
<i>Transitional_Processing</i> set to false. [[!UTS46]]
set to true, <i>UseSTD3ASCIIRules</i> set to <var>beStrict</var>, <i>Transitional_Processing</i>
set to false, and <i>IgnoreInvalidPunycode</i> set to false. [[!UTS46]]

<li><p>Signify <a>domain-to-Unicode</a> <a>validation errors</a> for any returned errors, and then,
return <var>result</var>.
Expand Down

0 comments on commit a6e4492

Please sign in to comment.