[whatwg/url] Close gap between URL writing and parser sections (PR #905)

1. Domain-percent-encoded — error for percent-encoding in domains (e.g., exam%70le.com).
2. Domain-non-strict — error when strict domain-to-ASCII would fail (e.g., _dmarc.example.com).
3. Invalid-URL-unit — now also emitted for spaces in opaque paths (e.g., foo:bar baz).
4. Writing grammar — non-special absolute URLs now allow opaque paths directly, fixing foo:a:b being incorrectly invalid.

Fixes #796. Fixes #797. Helps with #704.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Close gap between URL writing and parser sections

-- File Changes --

    M url.bs (72)

-- Patch Links --

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

Message ID: <whatwg/url/pull/905@github.com>

Received on Tuesday, 14 April 2026 15:10:34 UTC