[html5] r1824 - [] (0) Make the \ -> / conversion not happen in mailto:, data:, etc.

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 27 16:24:42 PDT 2008


Author: ianh
Date: 2008-06-27 16:24:41 -0700 (Fri, 27 Jun 2008)
New Revision: 1824

Modified:
   index
   source
Log:
[] (0) Make the \ -> / conversion not happen in mailto:, data:, etc.

Modified: index
===================================================================
--- index	2008-06-27 23:03:53 UTC (rev 1823)
+++ index	2008-06-27 23:24:41 UTC (rev 1824)
@@ -2730,10 +2730,6 @@
      character">space characters</a> from <var title="">url</var>.
 
    <li>
-    <p>Replace all U+005C REVERSE SOLIDUS (\) characters in <var
-     title="">url</var> with U+002F SOLIDUS (/) characters.
-
-   <li>
     <p>Parse <var title="">url</var> in the manner defined by RFC 3986, with
      the following exceptions:</p>
 
@@ -2835,6 +2831,9 @@
       <p>The substring matched by the <fragment> production, if any.
     </dl>
   </ol>
+  <!-- XXX we might want to define "server-based naming authority",
+  it's not clear RFC3986 does a good job of defining that anymore
+  (earlier URI specs did) -->
 
   <h4 id=resolving><span class=secno>2.3.3 </span>Resolving URLs</h4>
 
@@ -3012,13 +3011,21 @@
     <p class=example>For instance, if an absolute URI that would be returned
      by the above algorithm violates the restrictions specific to its scheme,
      e.g. a <code title="">data:</code> URI using the "<code
-     title="">//</code>" naming authority syntax, then user agents are to
-     treat this as an error instead.<!-- RFC 3986, 3.1
-    Scheme --></p>
+     title="">//</code>" server-based naming authority syntax, then user
+     agents are to treat this as an error instead.<!-- RFC
+    3986, 3.1 Scheme --></p>
 
    <li>
-    <p>Return the target URI (<var title="">T</var>) returned by the Relative
-     Resolution algorithm.
+    <p>Let <var title="">result</var> be the target URI (<var
+     title="">T</var>) returned by the Relative Resolution algorithm.
+
+   <li>
+    <p>If <var title="">result</var> uses a scheme with a server-based naming
+     authority, replace all U+005C REVERSE SOLIDUS (\) characters in <var
+     title="">result</var> with U+002F SOLIDUS (/) characters.
+
+   <li>
+    <p>Return <var title="">result</var>.
   </ol>
 
   <p>A <a href="#url">URL</a> is an <dfn id=absolute>absolute URL</dfn> if <a

Modified: source
===================================================================
--- source	2008-06-27 23:03:53 UTC (rev 1823)
+++ source	2008-06-27 23:24:41 UTC (rev 1824)
@@ -975,9 +975,6 @@
    character">space characters</span> from <var
    title="">url</var>.</p></li>
 
-   <li><p>Replace all U+005C REVERSE SOLIDUS (\) characters in <var
-   title="">url</var> with U+002F SOLIDUS (/) characters.</p></li>
-
    <li>
 
     <p>Parse <var title="">url</var> in the manner defined by RFC
@@ -1096,7 +1093,11 @@
 
   </ol>
 
+  <!-- XXX we might want to define "server-based naming authority",
+  it's not clear RFC3986 does a good job of defining that anymore
+  (earlier URI specs did) -->
 
+
   <h4>Resolving URLs</h4>
 
   <p>Relative URLs are resolved relative to a base URL. The <dfn>base
@@ -1291,13 +1292,23 @@
     <p class="example">For instance, if an absolute URI that would be
     returned by the above algorithm violates the restrictions specific
     to its scheme, e.g. a <code title="">data:</code> URI using the
-    "<code title="">//</code>" naming authority syntax, then user
-    agents are to treat this as an error instead.<!-- RFC 3986, 3.1
-    Scheme --></p>
+    "<code title="">//</code>" server-based naming authority syntax,
+    then user agents are to treat this as an error instead.<!-- RFC
+    3986, 3.1 Scheme --></p>
 
-   <li><p>Return the target URI (<var title="">T</var>) returned by
-   the Relative Resolution algorithm.</p></li>
+   </li>
 
+   <li><p>Let <var title="">result</var> be the target URI (<var
+   title="">T</var>) returned by the Relative Resolution
+   algorithm.</p></li>
+
+   <li><p>If <var title="">result</var> uses a scheme with a
+   server-based naming authority, replace all U+005C REVERSE SOLIDUS
+   (\) characters in <var title="">result</var> with U+002F SOLIDUS
+   (/) characters.</p></li>
+
+   <li><p>Return <var title="">result</var>.</p></li>
+
   </ol>
 
   <p>A <span>URL</span> is an <dfn>absolute URL</dfn> if <span




More information about the Commit-Watchers mailing list