This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://url.spec.whatwg.org/#host-parsing [[ While c is not the EOF code point, run these substeps: Let value be 0. If c is not an ASCII digit, parse error, return failure. While c is an ASCII digit, set value to value × 10 + c interpreted as decimal number and increase pointer by one. If value is greater than 255, parse error, return failure. If dots seen is less than 3 and c is not a ".", parse error, return failure. Set piece to piece × 0x100 + value. If dots seen is 0 or 2, increase piece pointer by one. Increase pointer by one. If dots seen is 3 and c is not the EOF code point, parse error, return failure. Increase dots seen by one. ]] This allows less than four decimal parts (three dots), eg: http://[::168.0]/ It probably should not.
Is something incorrect with the dots seen check?
It’s already correct, I misread it.