[RFE] A way to see the code used to compute attributes and styles

RESOLVED WONTFIX

Status

Other Applications
DOM Inspector
--
enhancement
RESOLVED WONTFIX
16 years ago
11 years ago

People

(Reporter: Mike Potter, Assigned: Joe Hewitt (gone))

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
I think it would be a good idea to show the user how the attributes for items
are being created. I've got a complicated XUL document, loaded into the Penzilla
environment, and I want to get the height of a body element inside an IFRAME.  I
can use the dom inspector to get the height, but I don't know in my code how to
get that value. It would be nice to be able to right click and see an option
View Code that would show me the code it used to get that value.

Updated

16 years ago
OS: Linux → All
Hardware: PC → All
I think this bug is a little too finicky:  For one thing, we don't know what
language the user is in.  If you don't know how to do something, then either
don't do it, or learn.  But don't rely on a program to tell you how because
there is no guarantee that the program's output will work for you (due to
scoping or placement) or the output may result in inefficient code (e.g. you may
have a reference to an element already but the output will have to assume you
don't and thus may output code which walks the document tree in order to get to
the element).

I suggest you learn about getComputedStyle() which will answer your question as
to how we arrived at the height.  And I suggest marking this bug as WONTFIX.
(Reporter)

Comment 2

16 years ago
Marking as such.
Status: NEW → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → WONTFIX
Product: Core → Other Applications
QA Contact: timeless → dom-inspector
You need to log in before you can comment on or make changes to this bug.