Mozilla XUL Element and Script Reference

Contents  Quick Reference

Binding

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 a content tag, a implementation tag and a handlers tag.

Attributes:

Attributes inherited from Element

class

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

extends

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 a URI of the binding that it is inheriting from. Alternatively, the value can be set to a tag name, to extend a provided tag. In this case, the namespace should be included.

id

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