Re: [whatwg/url] Consider adding non-throwing URL.parse(input, base) (#372)

I think this would be a nice and easy feature to add.

Before we commit to implementing it, I want to raise the possibility of returning an object instead of a URL or null.
Something like `let { url } = URL.parse(input, base);` allows us to add future fields to the return value, such as the error-type, if that's something we would be interested in.

In any case, I'm supportive of a non-throwing option to parse URLs.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/372#issuecomment-1996789207
You are receiving this because you are subscribed to this thread.

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

Received on Thursday, 14 March 2024 08:10:10 UTC