diff --git a/url.bs b/url.bs index 35cea9b1..7d9400bc 100644 --- a/url.bs +++ b/url.bs @@ -278,28 +278,35 @@ U+005C (\), or U+005D (]).
The domain to ASCII given a -domain domain, runs these steps: +
The domain to ASCII algorithm, given a domain +domain and optionally a boolean beStrict, runs these steps:
Let result be the result of running Unicode ToASCII with - domain_name set to domain, UseSTD3ASCIIRules set to false, - processing_option set to Nontransitional_Processing, and VerifyDnsLength set - to false. +
If beStrict is not given, set it to false. + +
Let result be the result of running Unicode ToASCII + with domain_name set to domain, UseSTD3ASCIIRules set to + beStrict, CheckHyphens set to false, CheckBidi set to true, + CheckJoiners set to true, processing_option set to + Nontransitional_Processing, and VerifyDnsLength set to beStrict. + +
This and domain to Unicode below are based on a proposed revision. See + issue #313.
If result is a failure value, validation error, return failure.
Return result.
The domain to Unicode given a -domain domain, runs these steps: +
The domain to Unicode algorithm, given a domain +domain, runs these steps:
Let result be the result of running - Unicode ToUnicode with - domain_name set to domain, - UseSTD3ASCIIRules set to false. + Unicode ToUnicode with domain_name set to domain, + CheckHyphens set to false, CheckBidi set to true, CheckJoiners set to true, + and UseSTD3ASCIIRules set to false.
Signify validation errors for any returned errors, and then, return result. @@ -315,16 +322,16 @@ U+005C (\), or U+005D (]).
A domain is a valid domain if these steps return success:
Let result be the result of running - Unicode ToASCII with - domain_name set to domain, - UseSTD3ASCIIRules set to true, processing_option set to - Nontransitional_Processing, and VerifyDnsLength set to true. +
Let result be the result of running domain to ASCII with domain + and true. -
If result is a failure value, return failure. +
If result is failure, then return failure.
Set result to the result of running - Unicode ToUnicode with + Unicode ToUnicode with domain_name set to result, + CheckHyphens set to false, CheckBidi set to true, CheckJoiners set to true, + and UseSTD3ASCIIRules set to true. + domain_name set to result, UseSTD3ASCIIRules set to true. @@ -3151,7 +3158,7 @@ spec: MEDIA-SOURCE; urlPrefix: https://w3c.github.io/media-source/#idl-def- type: interface; text: MediaSource spec: MEDIACAPTURE-STREAMS; urlPrefix: https://w3c.github.io/mediacapture-main/#idl-def- type: interface; text: MediaStream -spec: UTS46; urlPrefix: http://www.unicode.org/reports/tr46/ +spec: UTS46; urlPrefix: http://www.unicode.org/reports/tr46/proposed.html type: abstract-op; text: ToASCII; url: #ToASCII type: abstract-op; text: ToUnicode; url: #ToUnicode