Re: [whatwg/url] URL dumb behavior (#623)

This has to do with idempotence and the parsing differences between parsing special and non-special schemes.  Consider this example:
```
x = new URL("asdf://host")
x.pathname // "" in Safari and the spec, "//host" in Chrome and Firefox
x.protocol = "https"
x.pathname // "/"
```
Changing the protocol has changed the pathname value.  This is undesirable.

-- 
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/623#issuecomment-882753585

Received on Monday, 19 July 2021 18:10:21 UTC