O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.5. General-Purpose XUL Attributes

XUL is an XML application that is similar to HTML. It's no surprise that familiar attributes from HTML also apply to XUL.

id. XML supports the concept of tag identity, simply called id. HTML's id attribute is named id. XUL's id attribute is also named id. That is straightforward.

style. Inline styles can be specified for XUL as for HTML.

class. As with HTML, CSS syntax makes it particularly easy to apply style rules to elements of a particular class, or to all elements of the same class.

onevent handlers. XUL tags support most DOM inline event handlers like onclick. They are numerous and covered in Chapter 6, Events.

XUL also has its own set of generally useful attributes, like flex, debug, height, and width

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required