[whatwg/url] Allow protocol setter to switch between special and non-special schemes (Issue #674)

Chrome, Firefox, and Safari all agree on this behavior:

`u = new URL("custom-scheme://host?initially-no-path");`
`u.protocol = "https";`
`u.protocol = "custom-scheme";`
`u.href; // custom-scheme://host/?initially-no-path`

Even though it is a little strange, I have reason to believe that people are using the URL protocol setter to do this already.

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

Received on Tuesday, 23 November 2021 16:27:48 UTC