Re: Off Topic: Width of text input box vs. password input box



cjl wrote:

> VK:
>> But first assign different names to your two forms: it's a gross DOM
>> misuse.
>
> Even if they have different parents?

Ignore what VK had to say on the subject. He mistakenly referred to
your `form' elements. It seems to me that you took that as a reference
to the `input' elements since your forms are not named the same.

There is nothing wrong in naming form controls the same, not even if
they have the same parent `form' element; the element objects will
be properly represented in a HTMLCollection. However, it complicates
accessing the respective element objects via the DOM if the parent
`form' element is the same; so in this case, iff(!) not needed, it
should be avoided.


PointedEars
.