- From: Domenic Denicola <notifications@github.com>
- Date: Sat, 10 Oct 2020 07:31:17 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 10 October 2020 14:31:30 UTC
I suspect this doesn't work because `//` is an incomplete, invalid form of a scheme-relative URL. To use a complete scheme-relative URL you need to do `//foo` or similar. Then it will work: ```js (new URL('//foo', 'http://localhost:3000')).href // => "http://foo/" ``` -- 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/553#issuecomment-706558311
Received on Saturday, 10 October 2020 14:31:30 UTC