<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23962</bug_id>
          
          <creation_ts>2013-12-03 00:08:35 +0000</creation_ts>
          <short_desc>Limit IPv4 pieces to 3 digits (in IPv6 parsing)</short_desc>
          <delta_ts>2014-07-28 16:39:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>URL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Sapin">simon.sapin</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>santi</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97001</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Sapin">simon.sapin</who>
    <bug_when>2013-12-03 00:08:35 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97124</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-12-04 15:00:18 +0000</bug_when>
    <thetext>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 :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98503</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-01-15 15:01:50 +0000</bug_when>
    <thetext>https://github.com/whatwg/url/commit/a0a8e32866e702441fbd5469746d917769c62b53</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109390</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-07-28 16:39:57 +0000</bug_when>
    <thetext>https://github.com/whatwg/url/commit/1c22aa119c354e0020117e02571cec53f7c01064</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>