<?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>12823</bug_id>
          
          <creation_ts>2011-05-30 18:28:17 +0000</creation_ts>
          <short_desc>Host component analyzed in a URI scheme without host</short_desc>
          <delta_ts>2015-08-23 07:07:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://piratery.net/temp/ed2k-link.xhtml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="J">jerome.vuarand</reporter>
          <assigned_to name="Michael[tm] Smith">mike</assigned_to>
          <cc>julian.reschke</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48928</commentid>
    <comment_count>0</comment_count>
    <who name="J">jerome.vuarand</who>
    <bug_when>2011-05-30 18:28:17 +0000</bug_when>
    <thetext>The &quot;ed2k&quot; URI scheme has no host component (which is only natural for resources found in a peer-to-peer network). The HTML5 validator is giving errors for these URIs, which are valid.

The section &quot;1.2.3 Hierarchical Identifiers&quot; of the RFC 3986 &quot;Uniform Resource Identifier (URI): Generic Syntax&quot; specifies:

    For some URI schemes, the visible hierarchy is limited to the scheme itself: everything after the scheme component delimiter (&quot;:&quot;) is considered opaque to URI processing.

That should be the case for the &quot;ed2k&quot; scheme.

For an example of page giving an unexpected error, you can try to validate that document: http://piratery.net/temp/ed2k-link.xhtml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48947</commentid>
    <comment_count>1</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-05-31 07:56:18 +0000</bug_when>
    <thetext>I believe the warning is correct. Check the RFC 3986 grammar.

In 

  ed2k://|file|empty.txt|0|31D6CFE0D16AE931B73C59D7E0C089C0|/

everything after the scheme parses as &quot;authority&quot; component.

Lesson: don&apos;t use &quot;//&quot; at the beginning of the scheme-specific part unless it indeed starts the authority component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48948</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-05-31 08:15:45 +0000</bug_when>
    <thetext>(Following up on comment #1)
&gt;   ed2k://|file|empty.txt|0|31D6CFE0D16AE931B73C59D7E0C089C0|/
&gt; 
&gt; everything after the scheme parses as &quot;authority&quot; component.
&gt; 
&gt; Lesson: don&apos;t use &quot;//&quot; at the beginning of the scheme-specific part unless it
&gt; indeed starts the authority component.

So to be clear, it seems the that URI actually intentionally doesn&apos;t have an authority component. And the prose of RFC 3986 says:

  http://tools.ietf.org/html/rfc3986#section-3
  When authority is not present, the path cannot begin with two slash characters (&quot;//&quot;).

So the problem is that the ed2k URI syntax doesn&apos;t conform to RFC 3986. 

  http://en.wikipedia.org/wiki/Ed2k_URI_scheme

Given that, moving this bug to resolved=worksforme because the validator is behaving as expected for this case. If you still believe otherwise, please reopen it and add a comment explaining why.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48979</commentid>
    <comment_count>3</comment_count>
    <who name="J">jerome.vuarand</who>
    <bug_when>2011-05-31 20:46:13 +0000</bug_when>
    <thetext>Yes, you are both right, I misinterpreted RFC 3986. This is a bit annoying given that the ed2k scheme is never going to be fixed given its nature, but I guess I&apos;ll have to live with it and have non-conforming webpages.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>