[whatwg/url] protocol setter should not strip tabs and newlines (#620)

The tests that verify that tabs and newlines are stripped in url-setters-stripping.any.html are all failed by all browsers.  In order to make them pass I would have to break html/browsers/history/the-location-interface/location-protocol-setter.html which is passed by all browsers, and the location specification at https://html.spec.whatwg.org/multipage/history.html#dom-location-protocol just refers to the URL specification.  I think at least the URL specification should change, and probably HTML that refers to it.  I propose adding a step that checks to see if there are any tabs or newlines in the value, then returning if there are and doing nothing.  That would match all browsers.

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

Received on Thursday, 8 July 2021 21:16:16 UTC