Re: [whatwg/url] Is failure ever not a syntax violation? (#219)

So in https://url.spec.whatwg.org/#ipv4-number-parser step 5 returns failure but does not set *validationErrorFlag* (when *R* is 10). Which is intentional, right? Since host parsing `example.org` will also parse as an IPv4 address, and then https://url.spec.whatwg.org/#concept-ipv4-parser step 6.3 returns *input* in that case.

Within the basic URL parser, steps that return failure but do not say "validation error":

https://url.spec.whatwg.org/#hostname-state

2.3 and 3.4:
> If host is failure, then return failure.

Host parsing seems to take care of validation error for any failure.

https://url.spec.whatwg.org/#file-host-state

1.3.2

> If host is failure, then return failure.

Same.

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

Received on Monday, 13 February 2017 14:05:53 UTC