<?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>23550</bug_id>
          
          <creation_ts>2013-10-17 16:46:31 +0000</creation_ts>
          <short_desc>file URL parsing issues</short_desc>
          <delta_ts>2015-08-14 06:17:23 +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>27518</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>d</cc>
    
    <cc>lmm</cc>
    
    <cc>mike</cc>
    
    <cc>rubys</cc>
    
    <cc>travil</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94906</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-10-17 16:46:31 +0000</bug_when>
    <thetext>See https://github.com/annevk/url/issues/1

From Domenic:

var base = new URL(&quot;file:///C:/Users/Domenic/Dropbox/Programming/GitHub/jsdom/test/jsdom/index.js&quot;);

var resolved = new URL(&quot;/&quot;, base);

console.log(resolved.href);

Gives &quot;file:///&quot;, but should give &quot;file:///C:/&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96591</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-11-20 15:51:24 +0000</bug_when>
    <thetext>http://code.google.com/p/chromium/issues/detail?id=257354 has other cases the specification is not handling. file URLs definitely need more research :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115064</commentid>
    <comment_count>2</comment_count>
    <who name="Larry Masinter">lmm</who>
    <bug_when>2014-11-18 18:14:09 +0000</bug_when>
    <thetext>I wonder if it might be better to treat looking for and resolving &quot;file:&quot; URIs might be best described as a preprocessor, that web applications would use and non-web applications might leave out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122596</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-13 15:39:28 +0000</bug_when>
    <thetext>It would be interesting to have the results for these:

  / against file:///
  / against file://x/
  / against file:///C:/
  /C|/ against file:///
  /C:/ against file://x/
  /C:/ against file:///C:/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122597</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-13 15:47:25 +0000</bug_when>
    <thetext>And those tests, but then with the input prefixed with &quot;file:&quot;, just to make sure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122605</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-14 06:17:23 +0000</bug_when>
    <thetext>https://github.com/whatwg/url/commit/09cd673a338e7abc552140d950c4f34d7d71362a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>