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 XBL inherits attribute on any element within the content. This is used to have attributes of the bound element be placed on the inner content. This attribute must be in the XBL namespace.

More information about content

バインディングの無名内容の定義に利用される。content タグ内の要素は、結びつけられた要素の無名内容となる。その内容は XUL ファイル内に直接記されたかのように表示されるが、その要素たちは通常の DOM 関数からはアクセスできない。

無名内容を取得するには、XUL ドキュメントの getAnonymousNodes 関数を使う必要がある。content タグの内側に入れることのできる唯一の XBL 要素は、 children タグである。

content 内のどの要素にも XBL inherits 属性を付けることができる。内部の内容に置かれた、結びつけられた要素の属性を持つのに用いられる。この属性は XBL 名前空間内でなければならない。

content の追加情報

属性:

id

属性:

id

Type: element id, must be unique in the window

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

型 : 要素 id。ウィンドウ内で一意でなければならない。

content を識別できるユニークな識別子。getElementById や他の DOM 関数へのパラメータとして、またスタイルシートの要素への参照として使用することができる。


Copyright (C) 1999 - 2004 XulPlanet.com