W3C home > Mailing lists > Public > www-html@w3.org > November 2002

Re: name / id attribute usage

From: <mccarthy36@earthlink.net>
Date: Sun, 24 Nov 2002 21:17:19 -0500
Message-ID: <98190-220021112521719962@M2W081.mail2web.com>
To: www-html@w3.org

OK, let me get back to my original question.  Is it permissible to use
'name' and 'id' on an 'input' element at the same time with different
values?  

12.2.3 of HTML 4 says:
"When both attributes [name and id] are used on a single element, their
values must be identical."

But that section is about fragment identifiers, so I was not certain if it
would also apply in the case that the attributes are used on an element not
in that list, e.g. 'input'.

** PLEASE CC to my address -- I am not subscribed to the list ** 
Jesse McCarthy 


Original Message:
-----------------
From: Boris Zbarsky bzbarsky@MIT.EDU

My point was that <input> was left out of the list of controls on which
"name"
should be replaced with "id" because there is no way to do this replacement
with <input>, since "id" has to be unique.


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
Received on Monday, 25 November 2002 00:08:04 GMT

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