Home > Element Reference : Content

Contents

### Content

Used to define the anonymous content of a binding. The elements within the content tag become the anonymous content of the element bound to. The content is visible on screen as if it was present directly in the XUL file, however the elements cannot be seen via the normal DOM functions.

You need to use the getAnonymousNodes function of the XUL document to retrieve the anonymous content. The only XBL element that should appear inside the content tag is the children tag.

You can place the inherits attribute on any element within the content. This is used to have attributes of the bound element be placed on the inner content. Except for the includes attribute, described below, any attributes you place on the content element are added to the bound element.

More information about Content

#### Attributes:

Attributes inherited from Element

class

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

id

A unique identifier so that you can identify the xbl:content with. You can use this as a parameter to getElementById and other DOM functions and to reference the element in style sheets.

Copyright (C) 1999 - 2002 XULPlanet.com