[whatwg/url] Add details to host and path setters (#551)

When setting host (or hostname), remove everything after '/', '?', and '#' in all schemes and '\' in special URL schemes.  This matches the behavior of Firefox and WebKit after https://bugs.webkit.org/show_bug.cgi?id=217366 and is already expected by web platform tests.

When setting path, remove the first '/' and in special schemes also remove the first '\'.  This matches the behavior of Chrome and WebKit after https://bugs.webkit.org/show_bug.cgi?id=217366 and is already expected by web platform tests.


-- 
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/551

Received on Tuesday, 6 October 2020 15:00:42 UTC