Michael Ströder <michael at stroeder.com> wrote in
news:o0i1o-i07.ln1 at nb2.stroeder.com:
> Jon Ribbens wrote:
>> e.g. <input type="checkbox" name="foo*">
> ^^^
> Is the * guaranteed to work?
>>http://www.w3.org/TR/html401/interact/forms.html#h-17.4>> name CDATA
>>http://www.w3.org/TR/html401/types.html#type-cdata>> ------------------------------ snip ------------------------------
> 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 (".").
> ------------------------------ snip ------------------------------
Read it again. In an input tag, the type of the 'name' attribute is
'CDATA'. The paragraph you quote is about tokens of type 'ID' or 'NAME'
which is not relevant here.
The documents you refer to are actually slightly inconsistent. According to
the text, the 'id' attribute has the type 'NAME', but the DTD actually uses
the type 'ID' for the 'id' attribute. The 'NAME' type is used only for the
attributes 'name' and 'http-equiv' in a 'META' tag.
--
Duncan Booth duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?