<?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>12543</bug_id>
          
          <creation_ts>2011-04-23 01:28:20 +0000</creation_ts>
          <short_desc>[URL] Replacing backslash with forward slash in URIs doesn&apos;t seem to be necessitated by web compat</short_desc>
          <delta_ts>2013-04-11 15:51:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>http://www.w3.org/Bugs/Public/show_bug.cgi?id=14693</see_also>
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#resolving-urls</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15684</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>brunoaiss</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>erika.doyle</cc>
    
    <cc>ian</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>rubys</cc>
    
    <cc>travil</cc>
    
    <cc>VYV03354</cc>
    
    <cc>w3c</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47619</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-04-23 01:28:20 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#resolving-urls

Comment:
Replacing backslash with forward slash in URIs doesn&apos;t seem to be necessitated
by web compat

Posted from: 71.184.125.56
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0a1) Gecko/20110422 Firefox/6.0a1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47620</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-04-23 01:29:52 +0000</bug_when>
    <thetext>In particular, Gecko does not do this, an while there were some reports about it back about 10 years ago; it&apos;s been years since we last had a report about it.

Given that, we don&apos;t think this particular IE quirk is something worth imposing on the web forevermore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47621</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2011-04-23 02:58:13 +0000</bug_when>
    <thetext>This surprises me.  Does Gecko support \ in file URLs on Windows?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47627</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-04-23 03:31:48 +0000</bug_when>
    <thetext>Gecko does support replacing backslash with forward slash in file: URLs on Windows and OS/2.

Gecko also supports, on Windows and OS/2, converting backslashes in urls typed in the url bar (but NOT urls in web pages) to forward slashes, if the scheme is one of &quot;http&quot;, &quot;https&quot;, or &quot;ftp&quot;.

There are no other cases in which we do such replacement.

See the net_NormalizeFileURL call in nsFileProtocolHandler::NewURI for the former replacement and the XP_WIN|XP_OS2 block in nsDefaultURIFixup::CreateFixupURI for the latter fixup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47630</commentid>
    <comment_count>4</comment_count>
    <who name="Masatoshi Kimura">VYV03354</who>
    <bug_when>2011-04-23 04:00:38 +0000</bug_when>
    <thetext>Moreover, the current spec asks User-Agents to replace backslashes AFTER resolving the URI. But actual implementations (at least Mozilla on Windows for file URIs) replace it BEFORE resolving. Otherwise relative path resolving will not be handled correctly (consider about &quot;.\&quot; or &quot;..\&quot; or &quot;\topleveldirectory&quot;).
It&apos;s obvious that the backslash replacement clause was added in an unconsidered way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50121</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-06-22 21:48:04 +0000</bug_when>
    <thetext>Eventually this section will be replaced by http://tools.ietf.org/html/draft-abarth-url so it might be better to focus on that draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53936</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:34:38 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60186</commentid>
    <comment_count>7</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-11-20 14:35:14 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Eventually this section will be replaced by
&gt; http://tools.ietf.org/html/draft-abarth-url so it might be better to focus on
&gt; that draft.

Adam? Any plan to update the URL draft to address this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60239</commentid>
    <comment_count>8</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2011-11-20 18:18:27 +0000</bug_when>
    <thetext>&gt; Adam? Any plan to update the URL draft to address this?

I&apos;m not planning to update that draft anytime soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60258</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-11-20 21:00:46 +0000</bug_when>
    <thetext>un-assigning Adam for this per comment #8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60801</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-02 17:57:05 +0000</bug_when>
    <thetext>Does anyone know if we have a component for URL spec issues? Or any other tracking mechanism?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60885</commentid>
    <comment_count>11</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-12-03 05:07:40 +0000</bug_when>
    <thetext>(In reply to comment #10 from Hixie)
&gt; Does anyone know if we have a component for URL spec issues? Or any other
&gt; tracking mechanism?

we do now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63030</commentid>
    <comment_count>12</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-01-24 01:17:05 +0000</bug_when>
    <thetext>Moving back to component=&quot;LC1 HTML spec&quot; in order to comply with the decision policy, and cloned this bug to create bug 15684

Hixie, I would suggest that you change the status on this bug to RESOLVED with a comment that the plan is for this to be handled in the URL spec, and that bug 15684 is the bug for tracking this going forward.

If you do that and anybody objects to this bug being resolved that way, the decision policy gives them the option of reopening this bug and explaining why.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63129</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-01-25 23:44:06 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: see comment 12</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63131</commentid>
    <comment_count>14</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-01-25 23:45:02 +0000</bug_when>
    <thetext>*** Bug 14693 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63148</commentid>
    <comment_count>15</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2012-01-26 08:16:47 +0000</bug_when>
    <thetext>Please keep this bug open until the text it is about is indeed gone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78821</commentid>
    <comment_count>16</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2012-11-26 11:00:02 +0000</bug_when>
    <thetext>This needs to be resolved prior to entrance to CR.  See also http://lists.w3.org/Archives/Public/public-html/2012Nov/0201.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78916</commentid>
    <comment_count>17</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2012-11-27 15:48:53 +0000</bug_when>
    <thetext>I&apos;m moving this to .next because:

• It won&apos;t be addressed before CR;
• It&apos;s probably too big of a change to address in CR;
• While not specified in an optimal manner, the behaviour appears to be supported by all browsers save one and so is widespread (user questions on StackOverflow show that it does lead to interop issues);
• The slated replacement for this section (Anne&apos;s URL spec) maintains this feature.

So all in all, removing this text now would do more harm than good, and would be less in line with reality than including it, even if it is imperfect. This doesn&apos;t mean we&apos;re giving up on perfection: that&apos;s what .next is for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81717</commentid>
    <comment_count>18</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 15:59:22 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81835</commentid>
    <comment_count>19</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-01-21 16:02:08 +0000</bug_when>
    <thetext>Mass move to &quot;HTML WG&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82667</commentid>
    <comment_count>20</comment_count>
    <who name="Erika Doyle Navara">erika.doyle</who>
    <bug_when>2013-02-06 23:47:25 +0000</bug_when>
    <thetext>Reviving discussion for this on public-html:

http://lists.w3.org/Archives/Public/public-html/2013Feb/0069.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83293</commentid>
    <comment_count>21</comment_count>
    <who name="Erika Doyle Navara">erika.doyle</who>
    <bug_when>2013-02-18 23:30:04 +0000</bug_when>
    <thetext>Reassigning to Silvia, to cherry-pick from the WHATWG spec:

https://github.com/w3c/html/commit/5eba22bd9dfec1295f6108e002d3a3a157287767</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83970</commentid>
    <comment_count>22</comment_count>
    <who name="Erika Doyle Navara">erika.doyle</who>
    <bug_when>2013-03-04 23:52:03 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:


   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: Adopted the WHATWG change to integrate with URL specification (which omits the logic errors of the original URL parsing algorithm outlined in HTML5)
Rationale: 

This was originally a LC1 bug which was won&apos;t fixed (Comment 13) in order for discussion to continue in cloned WHATWG bug 15684, which was ultimately won&apos;t fixed. In the meantime, Bug 14693, which points out a logical error in the URL parsing algorithm, was duped to this bug. This bug was then reopened on the grounds that it should not be resolved until the erroneous text of the algorithm be removed and the logic ammended. The following commit merged from the WHATWG spec does this and defers to the URL specification to define parsing logic:

https://github.com/w3c/html/commit/b2e4d7e252df4c1be9e71666ec794ab0b2fa3a3e

Going forward, bugs in URL parsing should be filed on that spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85947</commentid>
    <comment_count>23</comment_count>
    <who name="Masatoshi Kimura">VYV03354</who>
    <bug_when>2013-04-11 15:51:18 +0000</bug_when>
    <thetext>This is actually WONTFIX because WHATWG specs WONTFIXed the corresponding bug 15684.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>