Re: [whatwg/url] Allow queries in relative references when the baseURL has an opaque path (Issue #668)

I'm personally pretty satisfied with @annevk's explanation, that the path and query are considered parts of the same thing (response from the server). If a user would really like to modify the query, they can already do that using the `.search` setter, which works independent of relative URL parsing.

> As for the path, I think our restrictions on modifying opaque paths are also questionable.

I don't think there's a _technical_ limitation on why it's forbidden (though it's slightly tricky¹), but rather more of a web compatibility issue.

¹ To ensure roundtrippability, you'd have to check that the new path doesn't start with a `/`, etc.

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

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

Received on Tuesday, 7 March 2023 15:50:59 UTC