Re: Looking a helper function which searches an element with a specified attribute name and value
Boris Zbarsky <[email protected]> Wed, 28 Apr 2010 03:57:14 -0400
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 4/28/10 2:47 AM, meryl wrote: > I have a pointer of nsIDOMDocument (that is the DOM of a rendered > page), when I try to get the nsIDOMXULDocument so that I can use that > getElementsByAttribute() method, it returns NULL. Then your document is not a XUL document and you can't use getElementsByAttribute. Come to think of which... is there a reason querySelector or querySelectorAll can't do what you want? -Boris