HTML5 draft: id attribute question

I was reading through the current HTML 5 draft, and these two paragraphs 
about the ID attribute confuse me:

"The |id <http://www.w3.org/html/wg/html5/#id>| 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. The value must not contain any space characters 
<http://www.w3.org/html/wg/html5/#space>.

If the value is not the empty string, user agents must associate 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 |getElementById()| method 
in the DOM)."

So, are space characters allowed or not?

If this is the wrong place to post this kind of question I apologise for 
spamming.


David Naylor

Received on Saturday, 26 January 2008 16:49:08 UTC