[whatwg/url] Report a validation error for IPv4 addresses from non-ASCII input (PR #925)

## Summary

- The domain parser silently maps fullwidth digits, ideographic dots, superscripts, circled digits, and ignored code points into ASCII digits and dots. When the mapped result ends in a number, the host parser IPv4-parses it cleanly with no validation error, yet such input is neither a valid IPv4-address string nor a valid domain string (e.g., `https://①.②.③.④`, `https://1。2。3。4`, `https://².2.3.4`).
- Adds a new `IPv4-non-ASCII-input` validation error, fired when `asciiDomain` ends in a number and the pre-ToASCII `domain` is not an ASCII string.
- Helps with #704.

## Test plan

- [ ] Confirm the alignment against the differential fuzzer (https://gist.github.com/domenic/c2285ead47ddd80e1f5ae98062e41e57).
- [ ] Verify implementations can plumb the new validation error through.


<!--
    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/925.html" title="Last updated on Jul 2, 2026, 6:06 AM UTC (92b3e16)">Preview</a> | <a href="https://whatpr.org/url/925/6ae8486...92b3e16.html" title="Last updated on Jul 2, 2026, 6:06 AM UTC (92b3e16)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Report a validation error for IPv4 addresses from non-ASCII input

-- File Changes --

    M url.bs (18)

-- Patch Links --

https://github.com/whatwg/url/pull/925.patch
https://github.com/whatwg/url/pull/925.diff

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

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

Received on Thursday, 2 July 2026 06:07:05 UTC