<?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>27233</bug_id>
          
          <creation_ts>2014-11-04 16:22:53 +0000</creation_ts>
          <short_desc>Support relative URLs for unknown schemes</short_desc>
          <delta_ts>2015-06-17 17:37:53 +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>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>
          <dependson>25946</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>lmm</cc>
    
    <cc>mike</cc>
    
    <cc>rubys</cc>
    
    <cc>simon.sapin</cc>
    
    <cc>singer</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114495</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-04 16:22:53 +0000</bug_when>
    <thetext>It seems we could support a parsing mode for schemes that are not relative schemes, nor are special in some other way (think data, javascript), that better matches RFC 3986.

http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Nov/0046.html
http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Nov/0047.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114587</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-06 09:07:08 +0000</bug_when>
    <thetext>We should consider making the authority/host component optional here since we can require stricter parsing rules. (No need to allow for 3+ leading slashes.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115373</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-24 09:24:16 +0000</bug_when>
    <thetext>*** Bug 27411 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115702</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-11-30 16:25:03 +0000</bug_when>
    <thetext>Does anybody have any suggestions for additions to the current tests, or modifications to the existing tests, for this?

https://github.com/w3c/web-platform-tests/blob/master/url/urltestdata.txt
https://url.spec.whatwg.org/interop/urltest-results/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115727</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-12-01 09:36:16 +0000</bug_when>
    <thetext>baz unknown:foo
baz unknown:foo/bar
baz unknown:/foo/bar
baz unknown://foo/bar
baz unknown:///foo/bar

also prefix each test with &quot;/&quot;, &quot;../&quot;, &quot;?&quot;, &quot;#&quot;

also test schemes that should not be relative (data, javascript etc).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115953</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-12-04 20:55:57 +0000</bug_when>
    <thetext>&gt; baz unknown:foo
&gt; baz unknown:foo/bar
&gt; baz unknown:/foo/bar
&gt; baz unknown://foo/bar
&gt; baz unknown:///foo/bar

FYI, the proposed reference implementation passes those tests, which I guess is another way of saying that I don&apos;t believe that these tests, as stated, test for relative handling of unknown URIs.

&gt; also test schemes that should not be relative (data, javascript etc).

Does anybody have a proposal for an exhaustive list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115967</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-12-05 09:30:32 +0000</bug_when>
    <thetext>Well you have to put in some other pass condition for the tests when you know what the new behavior should be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116674</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2014-12-24 12:10:53 +0000</bug_when>
    <thetext>As a possible base:

https://svn.apache.org/repos/asf/labs/webarch/trunk/uri/rev-2002/uri_test.pl

From:

https://svn.apache.org/repos/asf/labs/webarch/trunk/uri/test/index.html#uri_test.pl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121109</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-06-16 17:17:09 +0000</bug_when>
    <thetext>https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Jun/0028.html has a plan. Supporting this should not be too hard I think.

https://gist.github.com/annevk/a8c2e8f37446cb298986 has some of the tests proposed by Simon, for which I&apos;m updating the harness to support them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121198</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-06-17 15:32:24 +0000</bug_when>
    <thetext>https://github.com/whatwg/url/commit/b266a43fc9df0e8607074bd4d336a517e2010009</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121203</commentid>
    <comment_count>10</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-06-17 17:37:53 +0000</bug_when>
    <thetext>https://github.com/w3c/web-platform-tests/pull/1909 for the tests and changes to the testing infrastructure.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>