Re: [whatwg/url] Prevent the pathname setter from erasing the path of path-only URLs, … (#582)

I think it is valid (or, well, _not disallowed_) for some particular schemes/application to treat an empty path differently from a "/" path.

For instance if you're connecting to a remote server: for some hypothetical scheme, `myproto://user@host` could mean to connect to the user's home directory, and `myproto://user@host/` could mean to connect to the remote server's root directory. It may/may not be a good design choice, but if it's allowed, somebody could be relying on it.

-- 
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/pull/582#issuecomment-785252132

Received on Wednesday, 24 February 2021 17:42:33 UTC