[whatwg/url] Add exclude scheme to the URL serializer (PR #938)

Fetch's data: URL processor and HTML's javascript: URL evaluation both serialize the URL and then remove the leading scheme and U+003A (:) themselves. Give specifications a way to get everything after the scheme directly and recommend it over using individual URL components, as such URLs can also have a query, fragment, and host.

Fixes #385.


<!--
    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/938.html" title="Last updated on Nov 19, 2026, 11:07 AM UTC (290bd6d)">Preview</a> | <a href="https://whatpr.org/url/938/47721bb...290bd6d.html" title="Last updated on Nov 19, 2026, 11:07 AM UTC (290bd6d)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add exclude scheme to the URL serializer

-- File Changes --

    M url.bs (27)

-- Patch Links --

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

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

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

Received on Thursday, 19 November 2026 11:08:25 UTC