-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
IDNA: add a couple interesting ToASCII cases #37907
Conversation
Identified in whatwg/url#341 by karwa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to trust you that these are the correct serializations, but reading through the issue that wasn't actually clear to me. :/
I typically use browsers or something like https://mothereff.in/punycode. And only if they end up disagreeing I'll dive into the relevant specifications. |
These tests match browsers, but I guess they don't match the URL Standard, right? (Since the URL Standard depends on UTS 46 which disallows them.) So strictly spec-conformant implementations like jsdom/whatwg-url will now fail the test suite? |
These match the current URL standard, and UTS46.
|
I did a bit of digging, and I think I found the package which JSDOM uses for Punycode decoding. I sent a PR which should fix the |
Thanks for going above and beyond @karwa! These should indeed match the current specifications. I did file whatwg/url#733 to consider changing the URL Standard, but I'm not entirely convinced it's needed. |
For these cases in Chrome, it's the result of an ASCII fast path that has previously been discussed elsewhere (whatwg/url#438). Not sure about |
Identified in whatwg/url#341 by karwa.