- From: pethapixels-create <notifications@github.com>
- Date: Mon, 30 Nov 2026 14:39:11 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/url/pull/940@github.com>
Closes #867
The first step of the no scheme state reads:
> If base is null, or base has an opaque path and c is not U+0023 (#), missing-scheme-non-relative-URL validation error, return failure.
This is ambiguous as to whether it means `base === null || (opaquePath(base) && c != '#'))` or `(base === null || opaquePath(base)) && c != '#'`. The two interpretations differ for a non-null base with a non-opaque path where c is not '#': the intended behavior (matching the reference implementations and the subsequent "Otherwise, if base has an opaque path and c is U+0023 (#)" step) is the former.
This change makes the grouping explicit by spelling out that the second condition applies only when base has an opaque path. Editorial only; no normative change.
<!--
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/940.html" title="Last updated on Nov 30, 2026, 10:38 PM UTC (8496997)">Preview</a> | <a href="https://whatpr.org/url/940/4f461b8...8496997.html" title="Last updated on Nov 30, 2026, 10:38 PM UTC (8496997)">Diff</a>
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/url/pull/940
-- Commit Summary --
* Clarify no-scheme-state condition grouping (#867)
-- File Changes --
M url.bs (4)
-- Patch Links --
https://github.com/whatwg/url/pull/940.patch
https://github.com/whatwg/url/pull/940.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/940
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/url/pull/940@github.com>
Received on Monday, 30 November 2026 22:39:16 UTC