<?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>26361</bug_id>
          
          <creation_ts>2014-07-16 23:50:08 +0000</creation_ts>
          <short_desc>&quot;If dots seen is 0 or 2, increase piece pointer ...&quot;</short_desc>
          <delta_ts>2014-07-30 13:47:17 +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>Windows NT</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="Albert Wiersch">support</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>simon.sapin</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109028</commentid>
    <comment_count>0</comment_count>
    <who name="Albert Wiersch">support</who>
    <bug_when>2014-07-16 23:50:08 +0000</bug_when>
    <thetext>http://url.spec.whatwg.org/#host-parsing

[[
If dots seen is 0 or 2, increase piece pointer by one. 
]]

Shouldn&apos;t this be

If dots seen is 1 or 3, increase piece pointer by one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109475</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-07-29 09:22:43 +0000</bug_when>
    <thetext>Could you perhaps explain why? This was written a while ago. I&apos;m a bit rusty on the details and it would take me a while to get back into it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109495</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Wiersch">support</who>
    <bug_when>2014-07-29 13:46:22 +0000</bug_when>
    <thetext>The piece needs to be set based on the first two IPv4 values so the piece pointer must remain the same until after the first two IPv4 values have been extracted and the piece has been set with its final value. This means that the piece pointer should not change until dots seen is 1 (when the first two IPv4 values have been extracted) or 3 (when all 4 IPv4 values have been extracted) otherwise the piece is not calculated correctly (i.e. not calculated on two IPv4 values). I had to make this change in my code for it to work properly. Hope this is clear enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109574</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-07-30 13:47:17 +0000</bug_when>
    <thetext>And thanks again!

https://github.com/whatwg/url/commit/72e58483bf3cfe2c773ba3b87a710ace0e11ff12</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>