Inside the DOM Panel you get information about all the different DOM properties and methods. For objects and arrays it offers a expandable tree view. Clicking on them limits the display of the DOM tree to these objects resp. arrays and shows the current element path as breadcrumb list inside the Panel Toolbar. Clicking on a function jumps to it inside the Script Panel. Note, that the panel shows a snapshot of the current state. Changes to properties don't take effect on the display of the DOM panel until you are refreshing it.
This menu is reachable via the little arrow in the panel tab ( ) or by right-clicking on on the panel tab (since Firebug 1.9).
|Show User-defined Properties||
||Toggles the display of user-defined object properties|
|Show User-defined Functions||
||Toggles the display of user-defined object methods|
|Show DOM Properties||
||Toggles the display of properties specified inside the DOM|
|Show DOM Functions||
||Toggles the display of functions specified inside the DOM|
|Show DOM Constants||
||Toggles the display of constants specified inside the DOM|
|Show Inline Event Handlers||
||Toggles the display of inline event handlers|
||Toggles the display of closures; See the Closure Inspector for more info on this|
|Show Own Properties Only||
||Specifies whether only an object's own properties shall be shown|
|Show Enumerable Properties Only||
||Specifies whether only enumerable properties shall be shown|
|Refresh||-||Updates the display|
For more info about tweaks available in Firebug please see the full list of preferences.
The path from the currently selected property up to window is shown as breadcrumb list inside the Panel Toolbar. Clicking on one of the items displays the contents of the appropriate property of the DOM tree. Right-clicking on the Panel Toolbar offers an option for refreshing the displayed data.
Different color codes let you distinguish between the different types of variables and improve readability. Here they are in detail:
|get in gray||"Getter" functions|
|Bold green||User functions|
|Bold Red||Constructor functions|
Note that the values of read-only properties are displayed with a pale text color.
localStorage is just an object so you can create, view, and edit it in the DOM view.
You can add a breakpoint for a property by clicking the Breakpoint Column at the left side of it. By doing this the script execution will be halted as soon as the property is changed. Clicking on a set breakpoint removes it.
|Copy Name||Property List||-||Copies the name of the selected property to the clipboard|
|Copy Path||Property List||-||Copies the property path up to the selected property to the clipboard|
|Edit Property...||Property List||-||Lets you edit the value of the property|
|Delete Property||Property List (user-defined properties and functions)||-||Deletes the property|
|Break On Property Change||Property List (user-defined properties and functions)||-||Script execution will be stopped, if the selected property is changed|
|Refresh||Property List, Property Path||-||Refreshes the display of the Property List|
Depending on the property value there are different options offered related to it. E.g. if the value is an HTML node, you'll be offered special options related to it, which are described inside the HTML Panel.
For functions the additional context menu options are:
|Log Calls to "<function name>"||-||Logs calls to the given function; see monitor for more info|
|Copy Function||-||Copies the whole function to the clipboard|