On Apr 29, 1:16 pm, Olivier <[email protected]> wrote:
> I am creating a tool that need to know the CSS rules applied on a Dom
> object. I have an action on the contextual menu that retrieve the
> clicked element.
> - First I don't have much more information on the DOM element clicked
> using document.popupNode. No CSS class applied on this element, does
> it exist an other way of getting more info.
Firebug is using document.popupNode and getting all possible info so,
I guess it should be enough for you too, no?

> - Second, I am wondering if firefox is providing a service that gives
> the css applied or firebug is digging into the css files and css
> search for Css matching rules.
Yes there are several platform interfaces (accessible from JS) that
you can use to explore all CSS information. You can learn from Firebug
code, e.g. from the CSS panel:
http://code.google.com/p/fbug/source/browse/branches/firebug1.8/content/firebug/css.js

Honza

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to