Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Add note about when ToASCII = ASCII lowercase #598

Merged
merged 1 commit into from
May 19, 2021

Conversation

TimothyGu
Copy link
Member

@TimothyGu TimothyGu commented May 13, 2021

Many implementations currently skip ToASCII if domain is ASCII-only, but as discovered in #267 and #309 (comment), 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.


Preview | Diff

@annevk
Copy link
Member

annevk commented May 17, 2021

Did you see the discussion in #438? Adding this note seems okay, but we have several outstanding issues on IDNA suggesting our logic might have to be adjusted somehow. (Yet again :/)

@TimothyGu
Copy link
Member Author

Yes, I am aware. This change is still useful for the current state of the world though.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, looks good modulo nit.

url.bs Outdated Show resolved Hide resolved
Many implementations currently skip ToASCII if domain is ASCII-only, but
as discovered in [1] and [2], 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.

[1]: whatwg#267
[2]: whatwg#309 (comment)
@annevk annevk merged commit 8c24e54 into whatwg:main May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants