Re: name="" deprecated in XHTML

Johannes Koch schrieb:
> 
> David Woolley schrieb:
> 
>> (strictly speaking you could probably have both ID and NAME, with 
>> different values)
> 
> For a element, this is questionable.
> <http://www.w3.org/TR/html4/struct/links.html#adef-name-A>:
> 
>> Note that this attribute shares the same name space as the id attribute
> 
> I read this as: name and id attributes for the same a element must have 
> the same values.


isn't it common to use

<input type="radio" name="color" value="red" />
<input type="radio" name="color" value="blue" />

or

<input type="checkbox" name="color[]" value="red" />
<input type="checkbox" name="color[]" value="blue" />

so isn't it confusing to say on other elements ID and NAME share same space 
and name has to be unique?

and following the above example isn't it incidental to use the name 
attribute if you need to do something with all <input name="color[]" ...>?

and following the above example isn't it incidental to use name attribute 
the same way on other elements?

if i remember right the code i have seen so far it is very common!

so just thought deprecating name on some elements is the wrong way

i would go even the opposite and make name a global attribute

and i still think class and name should not be mixed up.

-- 
Sebastian Mendel

Received on Tuesday, 1 July 2008 06:16:05 UTC