Re: How to print the src attribute of an ImageElement
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <b76b50d9-4c44-47e9-886f-6d488c988d0c@s12g2000prg.googlegroups.com> |
On Jan 11, 11:54 pm, Boris Zbarsky <[email protected]> wrote: > [email protected] wrote: > > But it turns out that no all nsImageFrame is an ImageElement. > > That's true. It could also be an InputElement (<input type="image">). > > > I can think of 1 example. a LI element which uses an image > > an the bullet. > > That doesn't use an nsImageFrame. It uses an nsBulletFrame. > > -Boris Thank you again. Can you please tell me if it is possible to find out what is the url of the actual image from a pointer or imgIContainer or nsIImage or gfxImageFrame? I have look thru the code/documentation, I can't find any way to do that. The only way I can think of is to get the 'src' attribute of an HtmlImageElement. Thank you.