Re: [whatwg/url] Setters can cause failure to roundtrip (#651)

5. We could also say that in such cases the mapping of empty string to null does not happen. I.e., we would preserve `#` or `?` in the serialized URL.
6. We percent-encode the final code point of the path or query as needed.

I think I like these a bit better than 2. 4 would be problematic for fragment navigation, which is definitely a thing in `data:` URLs. 3 seems a little surprising. Agreed on 1.

-- 
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/651#issuecomment-927640297

Received on Monday, 27 September 2021 08:20:02 UTC