<?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>27234</bug_id>
          
          <creation_ts>2014-11-04 16:41:59 +0000</creation_ts>
          <short_desc>Support IPv6 link-local addresses?</short_desc>
          <delta_ts>2017-05-25 05:49:26 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>http://code.google.com/p/chromium/issues/detail?id=70762</see_also>
          <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>
          <dependson>25946</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>anthony</cc>
    
    <cc>mike</cc>
    
    <cc>rubys</cc>
    
    <cc>sascha-web-www.w3.org</cc>
    
    <cc>simon.sapin</cc>
    
    <cc>sleevi</cc>
    
    <cc>VYV03354</cc>
    
    <cc>w3bugs</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114496</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-04 16:41:59 +0000</bug_when>
    <thetext>There appears to be some interest to support this in browsers:

  https://bugzilla.mozilla.org/show_bug.cgi?id=700999


There is an RFC that updates RFC 3986 for this:

  https://tools.ietf.org/html/rfc6874#section-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122583</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-13 08:23:06 +0000</bug_when>
    <thetext>I believe Ryan told me we should not do this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122603</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2015-08-14 01:46:22 +0000</bug_when>
    <thetext>Yes, we&apos;re especially not keen to support these in Chrome and have repeatedly decided not to. The platform-specific nature of &lt;zone_id&gt; makes it difficult to impossible to validate the well-formedness of the URL (see https://tools.ietf.org/html/rfc4007#section-11.2 , as referenced in 6874, to fully appreciate this special hell). Even if we could reliably parse these (from a URL spec standpoint), it then has to be handed &apos;somewhere&apos;, and that opens a new can of worms.

Even 6874 notes how unlikely it is to encounter these in practice -
  &quot;Thus, URIs including a
   ZoneID are unlikely to be encountered in HTML documents.  However, if
   they do (for example, in a diagnostic script coded in HTML), it would
   be appropriate to treat them exactly as above.&quot;

Note that a &apos;dumb&apos; parser may not be sufficient, as the Security Considerations of 6874 note:
  &quot;To limit this risk, implementations MUST NOT allow use of this format
   except for well-defined usages, such as sending to link-local
   addresses under prefix fe80::/10.  At the time of writing, this is
   the only well-defined usage known.&quot;

And also
  &quot;An HTTP client, proxy, or other intermediary MUST remove any ZoneID
   attached to an outgoing URI, as it has only local significance at the
   sending host.&quot;

This requires a transformative rewrite of any URLs going out the wire. That&apos;s pretty substantial. Anne, do you recall the bug talking about IP canonicalization (e.g. http://127.0.0.1 vs http://[::127.0.0.1] vs http://012345 and friends?) This is conceptually a similar issue - except it&apos;s explicitly required in the context of &lt;zone_id&gt; that the &lt;zone_id&gt; not be emitted.

There&apos;s also the issue that zone_id precludes/requires the use of APIs that user agents would otherwise prefer to avoid, in order to &apos;properly&apos; handle the zone_id interpretation. For example, Chromium on some platforms uses a built in DNS resolver, and so our address lookup functions would need to define and support &lt;zone_id&gt;&apos;s and map them to system concepts. In doing so, you could end up with weird situations where a URL works in Firefox but not Chrome, even though both &apos;hypothetically&apos; supported &lt;zone_id&gt;&apos;s, because FF may use an OS routine and Chrome may use a built-in routine and they diverge.

Overall, our internal consensus is that &lt;zone_id&gt;&apos;s are bonkers on many grounds - the technical ambiguity (and RFC 6874 doesn&apos;t really resolve the ambiguity as much as it fully owns it and just says #YOLOSWAG) - and supporting them would add a lot of complexity for what is explicitly and admittedly a limited value use case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122611</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-14 12:04:56 +0000</bug_when>
    <thetext>Thank you Ryan.

https://github.com/whatwg/url/commit/ca97ec836d3ff246d5c53f420b0eb2798f2a982c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128599</commentid>
    <comment_count>4</comment_count>
      <attachid>1670</attachid>
    <who name="Remy Uduchukwu">gentle.jack35</who>
    <bug_when>2017-05-25 05:22:37 +0000</bug_when>
    <thetext>Created attachment 1670
HTML5

Currently resolved..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128602</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2017-05-25 05:49:26 +0000</bug_when>
    <thetext>The content of attachment 1670 has been deleted</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1670</attachid>
            <date>2017-05-25 05:22:37 +0000</date>
            <delta_ts>2017-05-25 05:22:37 +0000</delta_ts>
            <desc>HTML5</desc>
            <filename>header.svg</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Remy Uduchukwu">gentle.jack35</attacher>
            
              <data encoding="base64"></data>

          </attachment>
      

    </bug>

</bugzilla>