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: Noa <nlevin@jacada.com>
Date: Sun Jan 29 2006 - 16:00:11 CET

PointedEars, Thank you for the prompt answer

> Yes, indeed you have discovered another bug in an Element::getAttribute()
> implementation, and you provided another reason why it should not be used
> in the HTML DOM and why direct property accesses should be used instead,
> until further notice.

Is this what you meant? -> document.forms[0].name
Because this does the exactly same thing as "getAttribute".... it
returns the html input element and not the string with the value of the
attribute....

> Do not name any form control "name", to be exact

It is not "my" page so i cannot change it... I write BHO that reads
info from a page that could be any page on the net... and unfortunately
there is a possibility that i need to look for a specific form in a
page according to its name. So , isn't there any other way?

And, an off-topic question - How do I report the bug ?...

Thanks again, Noa
Received on Tue Feb 7 21:26:35 2006