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

No. I want to be able to parse and resolve relative URLs in an environment-agnostic way, for example on the server. It's completely unacceptable to rely on the DOM. The point of this issue is new functionality, which would behave exactly like `new URL()` does now, except it would support relative URLs in both arguments and it would return the resolved and parsed relative URL. That's it. I'm not asking for magical implicit resolution to an absolute URL. Just allow `baseUrl` to be relative and if it is relative, then return a relative URL.

I don't care if this is a change to the constructor or exposed as some new method.

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

Received on Monday, 20 July 2020 02:07:47 UTC