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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:03 UTC