[html5] r881 - /
whatwg at whatwg.org
whatwg at whatwg.org
Fri Jun 8 19:26:05 PDT 2007
Author: ianh
Date: 2007-06-08 19:26:04 -0700 (Fri, 08 Jun 2007)
New Revision: 881
Modified:
index
source
Log:
[ac] (0) Disallow spaces in IDs.
Modified: index
===================================================================
--- index 2007-06-09 01:02:29 UTC (rev 880)
+++ index 2007-06-09 02:26:04 UTC (rev 881)
@@ -6345,12 +6345,16 @@
<p>The <code title=attr-id><a href="#id">id</a></code> attribute represents
its element's unique identifier. The value must be unique in the subtree
within which the element finds itself and must contain at least one
- character.
+ character. The value must not contain any <a href="#space" title="space
+ character">space characters</a>.</p>
+ <!-- space characters are disallowed because space-separated lists
+ of IDs otherwise would not be able to reach all valid IDs -->
<p>If the value is not the empty string, user agents must associate the
- element with the given value (exactly) for the purposes of ID matching
- within the subtree the element finds itself (e.g. for selectors in CSS or
- for the <code>getElementById()</code> method in the DOM).
+ element with the given value (exactly, including any space characters) for
+ the purposes of ID matching within the subtree the element finds itself
+ (e.g. for selectors in CSS or for the <code>getElementById()</code> method
+ in the DOM).
<p>Identifiers are opaque strings. Particular meanings should not be
derived from the value of the <code title=attr-id><a
Modified: source
===================================================================
--- source 2007-06-09 01:02:29 UTC (rev 880)
+++ source 2007-06-09 02:26:04 UTC (rev 881)
@@ -5026,13 +5026,17 @@
<p>The <code title="attr-id">id</code> attribute represents its
element's unique identifier. The value must be unique in the subtree
within which the element finds itself and must contain at least one
- character.</p>
+ character. The value must not contain any <span title="space
+ character">space characters</span>.</p>
+ <!-- space characters are disallowed because space-separated lists
+ of IDs otherwise would not be able to reach all valid IDs -->
+
<p>If the value is not the empty string, user agents must associate
- the element with the given value (exactly) for the purposes of ID
- matching within the subtree the element finds itself (e.g. for
- selectors in CSS or for the <code>getElementById()</code> method in
- the DOM).</p>
+ the element with the given value (exactly, including any space
+ characters) for the purposes of ID matching within the subtree the
+ element finds itself (e.g. for selectors in CSS or for the
+ <code>getElementById()</code> method in the DOM).</p>
<p>Identifiers are opaque strings. Particular meanings should not be
derived from the value of the <code title="attr-id">id</code>
More information about the Commit-Watchers
mailing list