[html5] r1230 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri Feb 15 20:28:54 PST 2008


Author: ianh
Date: 2008-02-15 20:28:50 -0800 (Fri, 15 Feb 2008)
New Revision: 1230

Modified:
   index
   source
Log:
[] (0) Improve compatibility of the Location interface when faced with empty strings.

Modified: index
===================================================================
--- index	2008-02-16 01:19:18 UTC (rev 1229)
+++ index	2008-02-16 04:28:50 UTC (rev 1230)
@@ -32745,6 +32745,16 @@
    must invoke the <a href="#common3" title=concept-uda-setter>common setter
    action</a> with the value of <var title="">output</var>.
 
+  <p>When replacing a component in the URI, if the component is part of an
+   optional group in the URI syntax consisting of a character followed by the
+   component, the component (including its prefix character) must be included
+   even if the new value is the empty string.
+
+  <p class=note>The previous paragraph applies in particular to the "<code
+   title="">:</code>" before a <port> component, the "<code
+   title="">?</code>" before a <query> component, and the "<code
+   title="">#</code>" before a <fragment> component.
+
   <p>The rules for parsing and constructing URIs are described in RFC 3986
    and RFC 3987. <a href="#refsRFC3986">[RFC3986]</a> <a
    href="#refsRFC3987">[RFC3987]</a>
@@ -32831,9 +32841,10 @@
      <td>—
 
      <td>Remove any characters in the new value that are not in the range
-      U+0030 DIGIT ZERO .. U+0039 DIGIT NINE
+      U+0030 DIGIT ZERO .. U+0039 DIGIT NINE. If the resulting string is
+      empty, set it to a single U+0030 DIGIT ZERO character ('0').
 
-     <td>The new value is not the empty string
+     <td>—
 
     <tr>
      <td><dfn id=pathname0 title=dom-uda-pathname><code>pathname</code></dfn>

Modified: source
===================================================================
--- source	2008-02-16 01:19:18 UTC (rev 1229)
+++ source	2008-02-16 04:28:50 UTC (rev 1230)
@@ -30177,9 +30177,19 @@
   title="concept-uda-setter">common setter action</span> with the
   value of <var title="">output</var>.</p>
 
+  <p>When replacing a component in the URI, if the component is part
+  of an optional group in the URI syntax consisting of a character
+  followed by the component, the component (including its prefix
+  character) must be included even if the new value is the empty
+  string.</p>
+
+  <p class="note">The previous paragraph applies in particular to the
+  "<code title="">:</code>" before a <port> component, the "<code
+  title="">?</code>" before a <query> component, and the "<code
+  title="">#</code>" before a <fragment> component.</p>
+
   <p>The rules for parsing and constructing URIs are described in RFC
-  3986 and RFC 3987. <a
-  href="#refsRFC3986">[RFC3986]</a> <a
+  3986 and RFC 3987. <a href="#refsRFC3986">[RFC3986]</a> <a
   href="#refsRFC3987">[RFC3987]</a></p>
 
   <table>
@@ -30223,8 +30233,9 @@
      <td><span title="concept-uda-input">input</span> is hierarchical and uses a server-based naming authority
      <td>—
      <td>—
-     <td>Remove any characters in the new value that are not in the range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE
-     <td>The new value is not the empty string
+     <td>Remove any characters in the new value that are not in the range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE.
+         If the resulting string is empty, set it to a single U+0030 DIGIT ZERO character ('0').
+     <td>—
     <tr>
      <td><dfn title="dom-uda-pathname"><code>pathname</code></dfn>
      <td><abs_path>




More information about the Commit-Watchers mailing list