W3C home > Mailing lists > Public > www-html@w3.org > April 2003

Re: The ID Attribute

From: Roland Bluethgen <calocybe@web.de>
Date: Sun, 06 Apr 2003 05:39:23 +0200
Message-ID: <3E8FA16B.9000300@web.de>
To: www-html@w3.org

Bjoern Hoehrmann wrote:
> * Simon Jessey wrote:
> 
>>>Why is it invalid just because the value is numbers only?
>>
>>I think it has always been that way. The same goes for the name attribute.
> 
> 
> The name attribute is a CDATA attribute and may thus contain almost any
> character, <a name = '1 foo <> bar'>...</a> is perfectly valid in HTML.

If you had followed the pointer to the spec that Simon gave us, you 
would have read:

 >>ID and NAME tokens must begin with a letter ([A-Za-z]) and may be 
followed by any number of letters, digits ([0-9]), hyphens ("-"), 
underscores ("_"), colons (":"), and periods (".").<<

So long
Received on Saturday, 5 April 2003 22:39:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT