Re: [whatwg/url] Support relative URLs (#531)

Interesting. I did actually consider something exactly like that using `invalid:` as a scheme, but it's a hack and we'd like to avoid it. In Ky, we were able to use a regex string replacement for the query part of the URL, which also isn't great, but that was sufficient for the one place we still used `new URL()` - we removed all other usage of `new URL()` due to the aforementioned problems. There are other situations I've encountered, though, where something more complicated is needed. Parsing and resolving relative URLs is really something that should be built into the standard web APIs.

-- 
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/531#issuecomment-660854996

Received on Monday, 20 July 2020 07:29:30 UTC