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

Our use case is in the browser, I only mentioned other environments as an example of how it could benefit the larger community. Ky targets browsers primarily. We just don't want to specifically rely on the DOM or window. So we try to avoid referencing `document.baseURI` or `window.location`. That makes it difficult for us to use `new URL()` because it doesn't support relative URLs, which we are sometimes given as input because we are operating in a browser and relative URLs are a common occurrence in browser land.

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

Received on Thursday, 22 October 2020 18:57:40 UTC