[whatwg/url] Editorial: Add note about when ToASCII = ASCII lowercase (#598)

Many implementations currently skip ToASCII if domain is ASCII-only, but as discovered in https://github.com/whatwg/url/issues/267 and https://github.com/whatwg/url/pull/309#issuecomment-301405332, this can result in some undesirable behavior. Adding a note prevents implementors from making the mistake of thinking ToASCII is a no-op if the input is ASCII, and also provides a recommendation on how to properly optimize the ToASCII step.

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/url/pull/598

-- Commit Summary --

  * Editorial: Add note about when ToASCII = ASCII lowercase

-- File Changes --

    M url.bs (16)

-- Patch Links --

https://github.com/whatwg/url/pull/598.patch
https://github.com/whatwg/url/pull/598.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/598

Received on Thursday, 13 May 2021 01:33:27 UTC