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

I haven't gone through the setters like I have the constructor.   I think test 2 shows a bug in WebKit that I'm willing to try to change.  NSURLComponents already has the behavior that would make test 2 pass, and parsing foo://somehost doesn't add a slash to the path, so I think the path setter shouldn't either, unless called with something that isn't empty and doesn't start with a slash.

-- 
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-860979550

Received on Monday, 14 June 2021 20:45:18 UTC