Re: [whatwg/url] Proposal: URL.parseIPv4() URL.parseIPv6() (Issue #696)

> Can you elaborate on why URLHost would not satisfy these use cases?

It *might*... Just really not certain about the current status of `URLHost`. As I said, I'm really not all that concerned about the actual API, just the use case. I would suggest, however, that the additional object allocation with `new URLHost(...)` is not strictly needed in every case -- that is, it seems wasteful if all I really want is a simple true/false check to see if it's a valid ipv6 or not.

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

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

Received on Tuesday, 14 June 2022 13:54:57 UTC