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

Re: Form control names: namespace without parent form

From: David Dorward <david@dorward.me.uk>
Date: Sun, 30 Mar 2008 17:38:35 +0100
Message-Id: <2305B6EB-F10F-4511-B028-DA162CDB6B08@dorward.me.uk>
Cc: www-html@w3.org
To: Brian Beck <exogen@gmail.com>

On 30 Mar 2008, at 17:06, Brian Beck wrote:
>>  You can't have form controls outside a form which do anything useful
>>  without a dependancy on JavaScript (which is generally a bad idea).
> Well, some elements, e.g. <button type="button">, exist to be scripted
> and aren't functional even within a form. :)

That doesn't make using them a good idea ;)

>>  Having an element with a name that is the same as the id of another
>>  element can cause problems in some browsers (Internet Explorer in
>>  particular since it has a tendency of treating name in the same was
>>  as id, to the extent of returning named elements with the
>>  getElementById method).
> Ah, that's what I was wondering.  I'll look into it -- know if this
> happens for any element with a `name` attribute?  I thought it might
> just happen for `form` elements.

Any element.

David Dorward
Received on Sunday, 30 March 2008 16:39:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:18 UTC