Re: Form control names: namespace without parent form

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 UTC