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

Boris Zbarsky <[email protected]> Tue, 27 Apr 2010 07:09:19 -0400
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 4/27/10 1:48 AM, meryl wrote:
> 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.

XUL documents have getElementsByAttribute.

-Boris