Looking a helper function which searches an element with a specified attribute name and value

meryl <[email protected]> Mon, 26 Apr 2010 22:48:25 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <f86aa956-096e-4709-846e-04920ffbb5d2@n20g2000prh.googlegroups.com>
Hi,

Can you please tell me if there is any helper function which searches
within a nsDocument and return an element with a specified attribute
name an value.

It is kind GetElementById() but not looking for 'id' attribute only.

Thank you.