- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 08 Jun 2026 12:03:16 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/url/pull/914@github.com>
Unfortunately implementing Unicode ToASCII ends up rejecting websites such as
- http://xn--72czcrhaj7cpt0ed1dxb4mb1s1.blogspot.com/2018/11/blog-post_60.html
- https://xn--8i7caa.famitei.net/sekou/all
- https://xn--board-ngr.palungjit.org/members/
which is not really acceptable. So when ToASCII fails, domain is all ASCII, and there are no forbidden domain code points, we just return the lowercased domain. If an implementation does not surface validation errors this is indistinguishable from having an ASCII fast path.
Tests: https://github.com/web-platform-tests/wpt/pull/60476
<!--
Thank you for contributing to the URL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.
If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->
- [ ] At least two implementers are interested (and none opposed):
* Chromium presumably
* WebKit
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
* See commit message.
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
* Chromium: …
* Gecko: …
* WebKit: …
* Deno: …
* Node.js: …
- [x] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: N/A
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->
(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)
<!--
This comment and the below content is programmatically generated.
You may add a comma-separated list of anchors you'd like a
direct link to below (e.g. #idl-serializers, #idl-sequence):
Don't remove this comment or modify anything below this line.
If you don't want a preview generated for this pull request,
just replace the whole of this comment's content by "no preview"
and remove what's below.
-->
***
<a href="https://whatpr.org/url/914.html" title="Last updated on Jun 8, 2026, 7:02 PM UTC (270cd1f)">Preview</a> | <a href="https://whatpr.org/url/914/9fe73be...270cd1f.html" title="Last updated on Jun 8, 2026, 7:02 PM UTC (270cd1f)">Diff</a>
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/url/pull/914
-- Commit Summary --
* Add Unicode ToASCII fallback for ASCII domains
-- File Changes --
M url.bs (36)
-- Patch Links --
https://github.com/whatwg/url/pull/914.patch
https://github.com/whatwg/url/pull/914.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/914
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/url/pull/914@github.com>
Received on Monday, 8 June 2026 19:03:20 UTC