[whatwg/url] "This throws an exception if the input is not an..." (Issue #724)

https://url.spec.whatwg.org/commit-snapshots/bed0538a76ccbf383a63e724d169e18cfa725866/#example-5434421b


> This throws an exception if the input is not an absolute\-URL\-with\-fragment string:​ 

This isn't correct. For example, `https:example.org` is not an absolute-URL-with-frament-string, but `new URL("https:example.org")` does not throw an exception.

One potential fix would be not to try to reference a formally-defined term here, and instead say something vaguer and not linked like "absolute URL". Or you could try to say something about "parseable as a URL without a base URL", maybe.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/724

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/724@github.com>

Received on Sunday, 11 December 2022 13:24:28 UTC