Mozilla XUL Element and Script Reference

Contents  Quick Reference


Declares a binding. The id attribute is used to identify a binding and refer to it within a style sheet via the -moz-binding property. The same binding can be used to attach to any number of elements.

For example the following style property will refer to a binding with an id of dropbox:

  -moz-binding: url ('chrome://myapp/skin/mybindings.xml#dropbox');  

A binding element may contain an content tag, an implementation tag, an handlers tag and an resources tag.


Attributes inherited from Element


The style class of the xbl:binding. Multiple classes may be specified by separating them with spaces.


Although the display property is part of standard CSS, some additional values are allowed, for the XUL layout styles. You can use these values for non-XUL elements too, although they may produce unusual results.


Bindings may inherit content, properties, methods and event handlers from other bindings. The binding will have the content and implementation of the parent binding as well as any defined by itself. The extends attribute should be set to the URI of the binding that it is inheriting from.


A unique identifier so that you can identify the xbl:binding with.