This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23962 - Limit IPv4 pieces to 3 digits (in IPv6 parsing)
Summary: Limit IPv4 pieces to 3 digits (in IPv6 parsing)
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-03 00:08 UTC by Simon Sapin
Modified: 2014-07-28 16:39 UTC (History)
2 users (show)

See Also:


Attachments

Description Simon Sapin 2013-12-03 00:08:35 UTC
http://url.spec.whatwg.org/#host-parsing

[[
While c is an ASCII digit, set value to value × 10 + c interpreted as decimal number and increase pointer by one. 
]]

Should this be limited to three digits, or is this valid? http://[::127.0.0.00000001]/

In fact, is any non-significant zero prefix allowed?
Comment 1 Anne 2013-12-04 15:00:18 UTC
Per the URI RFC it is not allowed. In fact, that only allows

0-9 or
1-9 followed by 0-9 or
1 followed by 0-9 followed by 0-9 or
2 followed by 0-4 followed by 0-9 or
2 followed by 5 followed by 0-5

which seems to be what Gecko does although not what their code suggests :/