Re: "getAttribute" returns a child element instead of ...?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: "getAttribute" returns a child element instead of ...?

From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Sun Jan 29 2006 - 20:48:03 CET

VK wrote:

> Noa wrote:
>> Is this what you meant? -> document.forms[0].name
>
> See my post (""VK") again please:
>
> document.forms[0].elements[0].name
> or
> document.forms[0].elements['name'].name

The OP is trying to retrieve the `form' element's name, specified by
its `name' attribute.
 
>> And, an off-topic question - How do I report the bug ?
>
> It is not a bug [...]

Certainly it is. Element::getAttribute() should return the _attribute
value_ for all elements, not a reference to a child form control. Do
you ever read before you post?

PointedEars
Received on Tue Feb 7 21:26:44 2006