[whatwg/url] Path segments can be empty (PR #919)

E.g., https://example.com///this///is///fine.

And file:// can be followed by nothing in theory.

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

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

-- Commit Summary --

  * Path segments can be empty

-- File Changes --

    M url.bs (6)

-- Patch Links --

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

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

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

Received on Tuesday, 30 June 2026 12:55:34 UTC