[whatwg/url] Valid IPv4 address string (#583)

There is a minor issue with the definition of a **valid IPv4-address string** in the [Host Writing][1] section. 

> A **valid IPv4-address string** must be four sequences of up to three ASCII digits per sequence, each representing a decimal number no greater than 255, and separated from each other by U+002E (.).

From this is is not clear if e.g. `127.0.0.001` is a valid IPv4-address string.
The parsing section suggests that it is not; the [IPv4 number parser][2] records a validationError for e.g. `001` in Step 4. 

[1]: https://url.spec.whatwg.org/#valid-ipv4-address-string
[2]: https://url.spec.whatwg.org/#ipv4-number-parser

-- 
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/583

Received on Tuesday, 23 February 2021 12:36:47 UTC