spec/Overview.html 1.1012 1823 Make backslashes turn into forward slash

Make backslashes turn into forward slashes when parsing URLs. Sigh.
(whatwg r1823) (changed by: Ian Hickson)

Diffs for this change per section: 
  http://people.w3.org/mike/diffs/html5/spec/Overview.1.1012.html#parsing0

Current content per affected section: 
  http://dev.w3.org/html5/spec/Overview.html#parsing0

Previously published WD content per affected section: 
  http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#parsing0

Cumulative diff: http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1011&r2=1.1012&f=h

http://html5.org/tools/web-apps-tracker?from=1822&to=1823

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1011
retrieving revision 1.1012
diff -u -d -r1.1011 -r1.1012
--- Overview.html	27 Jun 2008 21:57:57 -0000	1.1011
+++ Overview.html	27 Jun 2008 23:04:56 -0000	1.1012
@@ -2826,106 +2826,119 @@
   <h4 id=parsing0><span class=secno>2.3.2 </span>Parsing URLs</h4>
 
   <p>To <dfn id=parse0>parse a URL</dfn> <var title="">url</var> into its
-   component parts, the user agent must first strip leading and trailing <a
-   href="#space" title="space character">space characters</a> from <var
-   title="">url</var>, and then must parse <var title="">url</var> in the
-   manner defined by RFC 3986, with the following exceptions:
+   component parts, the user agent must use the following steps:
 
-  <ul>
-   <li>Add all characters with codepoints less than or equal to U+0020 or
-    greater than or equal to U+007F to the &lt;unreserved&gt; production.
+  <ol>
+   <li>
+    <p>Strip leading and trailing <a href="#space" title="space
+     character">space characters</a> from <var title="">url</var>.
 
-   <li>Add the characters U+0022, U+003C, U+003E, U+005B .. U+005E, U+0060,
-    and U+007B .. U+007D to the &lt;unreserved&gt; production. <!--
-     0022 QUOTATION MARK
-     003C LESS-THAN SIGN
-     003E GREATER-THAN SIGN
-     005B LEFT SQUARE BRACKET
-     005C REVERSE SOLIDUS
-     005D RIGHT SQUARE BRACKET
-     005E CIRCUMFLEX ACCENT
-     0060 GRAVE ACCENT
-     007B LEFT CURLY BRACKET
-     007C VERTICAL LINE
-     007D RIGHT CURLY BRACKET
-    -->
-    
+   <li>
+    <p>Replace all U+005C REVERSE SOLIDUS (\) characters in <var
+     title="">url</var> with U+002F SOLIDUS (/) characters.
 
-   <li>Add a single U+0025 PERCENT SIGN character as a second alternative way
-    of matching the &lt;pct-encoded&gt; production, except when the
-    &lt;pct-encoded&gt; is used in the &lt;reg-name&gt; production.
+   <li>
+    <p>Parse <var title="">url</var> in the manner defined by RFC 3986, with
+     the following exceptions:</p>
 
-   <li>Add the U+0023 NUMBER SIGN character to the characters allowed in the
-    &lt;fragment&gt; production.</li>
-   <!-- some browsers also have other differences, e.g. Mozilla
-   seems to treat ";" as if it was not in sub-delims, if the scheem
-   is "ftp". -->
-  </ul>
+    <ul>
+     <li>Add all characters with codepoints less than or equal to U+0020 or
+      greater than or equal to U+007F to the &lt;unreserved&gt; production.
 
-  <p>If <var title="">url</var> doesn't match the &lt;URI-reference&gt;
-   production, even after the above changes are made to the ABNF definitions,
-   then parsing the URL fails with an error. <a
-   href="#references">[RFC3986]</a>
+     <li>Add the characters U+0022, U+003C, U+003E, U+005B .. U+005E, U+0060,
+      and U+007B .. U+007D to the &lt;unreserved&gt; production. <!--
+       0022 QUOTATION MARK
+       003C LESS-THAN SIGN
+       003E GREATER-THAN SIGN
+       005B LEFT SQUARE BRACKET
+       005C REVERSE SOLIDUS
+       005D RIGHT SQUARE BRACKET
+       005E CIRCUMFLEX ACCENT
+       0060 GRAVE ACCENT
+       007B LEFT CURLY BRACKET
+       007C VERTICAL LINE
+       007D RIGHT CURLY BRACKET
+      -->
+      
 
-  <p>If parsing <var title="">url</var> was successful, then the components
-   of the URL are substrings of <var title="">url</var> defined as follows:
+     <li>Add a single U+0025 PERCENT SIGN character as a second alternative
+      way of matching the &lt;pct-encoded&gt; production, except when the
+      &lt;pct-encoded&gt; is used in the &lt;reg-name&gt; production.
 
-  <dl>
-   <dt><dfn id=ltschemegt title=url-scheme>&lt;scheme&gt;</dfn>
+     <li>Add the U+0023 NUMBER SIGN character to the characters allowed in
+      the &lt;fragment&gt; production.</li>
+     <!-- some browsers also have other differences, e.g. Mozilla
+     seems to treat ";" as if it was not in sub-delims, if the scheem
+     is "ftp". -->
+    </ul>
 
-   <dd>
-    <p>The substring matched by the &lt;scheme&gt; production, if any.
+   <li>
+    <p>If <var title="">url</var> doesn't match the &lt;URI-reference&gt;
+     production, even after the above changes are made to the ABNF
+     definitions, then parsing the URL fails with an error. <a
+     href="#references">[RFC3986]</a></p>
 
-   <dt><dfn id=lthostgt title=url-host>&lt;host&gt;</dfn>
+    <p>Otherwise, parsing <var title="">url</var> was successful; the
+     components of the URL are substrings of <var title="">url</var> defined
+     as follows:</p>
 
-   <dd>
-    <p>The substring matched by the &lt;host&gt; production, if any.
+    <dl>
+     <dt><dfn id=ltschemegt title=url-scheme>&lt;scheme&gt;</dfn>
 
-   <dt><dfn id=ltportgt title=url-port>&lt;port&gt;</dfn>
+     <dd>
+      <p>The substring matched by the &lt;scheme&gt; production, if any.
 
-   <dd>
-    <p>The substring matched by the &lt;port&gt; production, if any.
+     <dt><dfn id=lthostgt title=url-host>&lt;host&gt;</dfn>
 
-   <dt><dfn id=lthostportgt title=url-hostport>&lt;hostport&gt;</dfn>
+     <dd>
+      <p>The substring matched by the &lt;host&gt; production, if any.
 
-   <dd>
-    <p>If there is a &lt;scheme&gt; component and a &lt;port&gt; component
-     and the port given by the &lt;port&gt; component is different than the
-     default port defined for the protocol given by the &lt;scheme&gt;
-     component, then &lt;hostport&gt; is the substring that starts with the
-     substring matched by the &lt;host&gt; production and ends with the
-     substring matched by the &lt;port&gt; production, and includes the colon
-     in between the two. Otherwise, it is the same as the &lt;host&gt;
-     component.</p>
+     <dt><dfn id=ltportgt title=url-port>&lt;port&gt;</dfn>
 
-   <dt><dfn id=ltpathgt title=url-path>&lt;path&gt;</dfn>
+     <dd>
+      <p>The substring matched by the &lt;port&gt; production, if any.
 
-   <dd>
-    <p>The substring matched by one of the following productions, if one of
-     them was matched:</p>
+     <dt><dfn id=lthostportgt title=url-hostport>&lt;hostport&gt;</dfn>
 
-    <ul class=brief>
-     <li>&lt;path-abempty&gt;
+     <dd>
+      <p>If there is a &lt;scheme&gt; component and a &lt;port&gt; component
+       and the port given by the &lt;port&gt; component is different than the
+       default port defined for the protocol given by the &lt;scheme&gt;
+       component, then &lt;hostport&gt; is the substring that starts with the
+       substring matched by the &lt;host&gt; production and ends with the
+       substring matched by the &lt;port&gt; production, and includes the
+       colon in between the two. Otherwise, it is the same as the
+       &lt;host&gt; component.</p>
 
-     <li>&lt;path-absolute&gt;
+     <dt><dfn id=ltpathgt title=url-path>&lt;path&gt;</dfn>
 
-     <li>&lt;path-noscheme&gt;
+     <dd>
+      <p>The substring matched by one of the following productions, if one of
+       them was matched:</p>
 
-     <li>&lt;path-rootless&gt;
+      <ul class=brief>
+       <li>&lt;path-abempty&gt;
 
-     <li>&lt;path-empty&gt;
-    </ul>
+       <li>&lt;path-absolute&gt;
 
-   <dt><dfn id=ltquerygt title=url-query>&lt;query&gt;</dfn>
+       <li>&lt;path-noscheme&gt;
 
-   <dd>
-    <p>The substring matched by the &lt;query&gt; production, if any.
+       <li>&lt;path-rootless&gt;
 
-   <dt><dfn id=ltfragmentgt title=url-fragment>&lt;fragment&gt;</dfn>
+       <li>&lt;path-empty&gt;
+      </ul>
 
-   <dd>
-    <p>The substring matched by the &lt;fragment&gt; production, if any.
-  </dl>
+     <dt><dfn id=ltquerygt title=url-query>&lt;query&gt;</dfn>
+
+     <dd>
+      <p>The substring matched by the &lt;query&gt; production, if any.
+
+     <dt><dfn id=ltfragmentgt title=url-fragment>&lt;fragment&gt;</dfn>
+
+     <dd>
+      <p>The substring matched by the &lt;fragment&gt; production, if any.
+    </dl>
+  </ol>
 
   <h4 id=resolving><span class=secno>2.3.3 </span>Resolving URLs</h4>

Received on Saturday, 28 June 2008 04:15:16 UTC