<?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>28600</bug_id>
          
          <creation_ts>2015-05-04 14:14:01 +0000</creation_ts>
          <short_desc>Not supporting fragment identifiers on at least data: URIs (but probably also about:blank and others) is not web-compatible</short_desc>
          <delta_ts>2015-06-15 17:25:10 +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>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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>rubys</cc>
          
          <qa_contact>sideshowbarker+urlspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>120061</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2015-05-04 14:14:01 +0000</bug_when>
    <thetext>Consider this testcase:

  var url = new URL(&quot;#foo&quot;, &quot;data:text/html,&quot;); alert(url.spec);

Per spec, this should fail.  Per browsers and reality, &quot;data:text/html#foo&quot; is alerted.

See https://bugzilla.mozilla.org/show_bug.cgi?id=308590 for why the web depends on this behavior.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1157953 for why we probably want a similar behavior for &quot;about:blank&quot; as base URL.

There may be other non-relative schemes or particular URIs from those schemes (maybe even all?) that want this behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121009</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-06-15 17:25:10 +0000</bug_when>
    <thetext>https://github.com/w3c/web-platform-tests/pull/1902 (Gecko fails these for unrelated reasons).

https://github.com/whatwg/url/commit/7468c397f600b72f650f52fc02466f051bf96ad3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>