Re: The ID Attribute

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