Skip to content

Handle opaque-path bases in URL string validation - #329

Merged
domenic merged 1 commit into
mainfrom
codex/opaque-path-relative-url-validation
Jul 1, 2026
Merged

Handle opaque-path bases in URL string validation#329
domenic merged 1 commit into
mainfrom
codex/opaque-path-relative-url-validation

Conversation

@domenic

@domenic domenic commented Jul 1, 2026

Copy link
Copy Markdown
Member

Updates URL string validation to follow whatwg/url#920 for relative strings against opaque-path bases.

Reject relative URL strings with non-empty pre-fragment content when the base URL has an opaque path.

Keep fragment-only strings valid by validating the optional fragment separately before applying the opaque-path base rule.

Add coverage for foo:opaque bases, including the a/b case from whatwg/url#920.

Co-Authored-By: codex <codex@openai.com>
@domenic
domenic force-pushed the codex/opaque-path-relative-url-validation branch from c621e36 to 3f17efd Compare July 1, 2026 03:52
@domenic
domenic merged commit f55baa0 into main Jul 1, 2026
5 checks passed
@domenic
domenic deleted the codex/opaque-path-relative-url-validation branch July 1, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant