Re: [whatwg/url] Double-encoded IDNA labels don't roundtrip (#603)

I think double-encoded labels must be considered invalid. I see two ways to achieve this:
1. Set *CheckHyphens* to true
2. Or modify [UTS 46 validity criteria](https://www.unicode.org/reports/tr46/#Validity_Criteria): add following criteria (suppose after 3):
   "If *CheckHyphens* = false, the label must not begin with `xn--`"

-- 
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/issues/603#issuecomment-842625331

Received on Monday, 17 May 2021 20:44:08 UTC