[whatwg/url] Parsing with state override set to opaque path can make URLs not roundtrip (Issue #909)

Scripter17 created an issue (whatwg/url#909)

### What is the issue with the URL Standard?

I'm not clear on if and when each state override is valid, but I noticed that the [opaque path state](https://url.spec.whatwg.org/#cannot-be-a-base-url-path-state) doesn't reject, remove, or change trailing space literals. I first noticed this being an issue in the Rust URL crate (https://github.com/servo/rust-url/issues/1123) and am unsure if the crate or spec is wrong here.

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

Message ID: <whatwg/url/issues/909@github.com>

Received on Monday, 18 May 2026 06:37:01 UTC