When you install Firefox, you should select the option for DOM inspector. This tool shows you the DOM tree after the dojo widgets have been expanded. It's indespensible.
There are similar tools for IE. We recommend Microsoft's own Developer Toolbar.