Re: [url] Parsing an empty host (#79)

This would work, but:

The IPv4 parser already has three different kind of outcomes: return a string (the input unchanged, used when the input is not in the expected format), return failure (used when numbers are too large) and return an IPv4 address. Why introduce a fourth? (Abort with an assertion error, a concept that this spec didn’t have so far.) Doesn’t returning failure for the empty string have the desired effect?

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

Received on Thursday, 11 February 2016 08:48:38 UTC