13.6. Debug Corner: Making <LISTBOX> and <TREE> Work

The <listbox> and <tree> tags are more complex than form elements and can be very frustrating to use if the wrong approach is used. <listbox> is still fragile and a little tricky, and that situation demands an element of caution. No matter how it may look, the <tree> tag is not fragile. It works properly, and if nothing displays inside the tree, then it must be the application code at fault. As Mozilla matures, these two tags will no doubt become more user friendly as well as more robust.

The main problem with <listbox> and <tree> stems from XUL. There are no detailed run-time syntax or layout checks that can act as a compiler, although debug features of the platform can spew out some diagnostics ...

Get Rapid Application Development with Mozilla™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.