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

Re: name / id attribute usage

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sun, 24 Nov 2002 21:54:27 +0000 (GMT)
Message-Id: <200211242154.gAOLsSO02915@djwhome.demon.co.uk>
To: mccarthy36@earthlink.net
Cc: www-html@w3.org

> 'name' and 'id' attributes.  As you are probably aware, some existing
> (popular) user agents do not properly treat the 'id' value as the control
> name of a form element (e.g. 'input'), so it is a practicaly necessity to

Which user agents are broken and use id?  (That's rhetorical; the answer
is off topic.)

> use the 'name' attribute.  By the same token, the id attribute must be used

name is the *only* way of specifying the name that is submitted to the
server!

> This section is about fragment identifiers.  Although it does not say so,

id's are only used for fragment identifiers and for document object
model operations.

> is this statement true only in context when using 'name' / 'id' to create
> fragment identifiers?  Or is it true in general, precluding the
> simultaneous use of 'name' and 'id' on, say, an 'input' element?

Radio buttons, or multiple forms require the use of non-unique names, so
input elements must also support id's which needn't match the name.

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

Subscribing is easy, and you can use the archives.  People often forget
to copy deep into the thread, especially old timers who normally do not
copy the author.
Received on Sunday, 24 November 2002 16:54:35 GMT

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