From MozillaZine Knowledge Base
(Difference between revisions)
Revision as of 20:48, 12 April 2006
The article "Introduction to the DOM Inspector", by Ian Oeschger, provides a basic overview of the DOMi. It's a good place to orient yourself with the DOMi and learn how to use its features. The article has some Mozilla Suite-specific references, but most of the information still applies to DOMi in Firefox and other programs.
Getting the DOMi
The DOMi is included in Firefox builds since November 2003, but it is an option in the Windows installer. You must choose the "Custom" installation and select "DOM Inspector" in the "Additional components" window.
DOMi was an installer option in Thunderbird builds since the end of March 2004 and in the 0.6 release, but it was removed from installer for the 0.8 release to keep download size small. There's no official XPI for Thunderbird yet as of May 2005. (See bug 254031.)
Chris Neale kindly made an XPI package for Thunderbird (discussion thread). Note that since it contains binary components for different OSes, Thunderbird may complain about SO/DLL/DYLIB files at startup. Just delete the files it complains about from your profile folder.
The DOM Inspector is available in the "Complete" Mozilla Suite installation or by selecting the Inspector component in a "Custom" installation.
Additionally, the Inspector Widget extension adds an "Inspect" toolbar button and the menu option "Tools -> Web Development -> DOM Inspector". Selecting an element after clicking the Inspect button will launch the DOMi and inspect the element.
Using the DOMi
The Using the DOM Inspector section in the "Introduction to the DOM Inspector" explains what you can do once you get the DOMi. The DOM Inspector is very handy tool for theme and extension developers, as it allows you to view various properties associated with any XUL element.
This section is a stub.
Issues with the DOMi
Warning! Changing themes while using the DOMi may cause the program to crash.
NOTE There is a problem with the Inspector if "Show Whitespace Nodes" is not selected - > the "Blink Selected Element" option is turned off when the Inspector is opened. It does not store the preferences... There is a bug (307255) and a proposed "fix" at this location:
It seems to address the old Inspector that came as an extension, so no work around for now (?).