Re: [whatwg/url] Expose a URLHost class to JavaScript (#288)

It also gives an easy way to parse a host. Which can be useful if your chosen scheme always gives you an opaque host (or IPv6). And more ergonomic than something like `new URL("https://" + host);` which might also do the wrong thing for certain inputs.

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

Message ID: <whatwg/url/pull/288/c1434542261@github.com>

Received on Friday, 17 February 2023 12:01:43 UTC