Re: The ID Attribute

Roland Bluethgen wrote:

>
> 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
>
>
I never seen that on the spec. I'll have to look it over again.

Received on Sunday, 6 April 2003 08:21:34 UTC