W3C home > Mailing lists > Public > www-html@w3.org > July 2008

Re: name="" deprecated in XHTML

From: Sebastian Mendel <lists@sebastianmendel.de>
Date: Tue, 01 Jul 2008 08:16:58 +0200
Message-ID: <4869CBDA.2070604@sebastianmendel.de>
To: Johannes Koch <koch@w3development.de>
CC: www-html@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:14 GMT