[whatwg/url] Valid domain needs to account for ending with a number (PR #918)

However, making example.1 invalid also makes 1.2 invalid. Valid IPv4 does not allow for 1.2, so we also add IPv4-too-few-parts to address that.

Helps with #704.


<!--
    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/918.html" title="Last updated on Jun 30, 2026, 12:38 PM UTC (23bb546)">Preview</a> | <a href="https://whatpr.org/url/918/37afb50...23bb546.html" title="Last updated on Jun 30, 2026, 12:38 PM UTC (23bb546)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Valid domain needs to account for ending with a number

-- File Changes --

    M url.bs (18)

-- Patch Links --

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

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

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

Received on Tuesday, 30 June 2026 12:38:56 UTC