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
http://dorward.me.uk/
http://blog.dorward.me.uk/
Received on Sunday, 30 March 2008 16:39:25 GMT

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