mozilla

Revision 105260 of DOM Interfaces

  • Revision slug: XBL/XBL_1.0_Reference/DOM_Interfaces
  • Revision title: DOM Interfaces
  • Revision id: 105260
  • Created:
  • Creator: Tservo
  • Is current revision? No
  • Comment /* The DocumentXBL Interface */

Revision Content

The DocumentXBL Interface

The DocumentXBL interface contains methods for loading and obtaining binding documents. The interface is implemented by DOM documents that support XBL.

IDL Definition

interface DocumentXBL {
  Document loadBindingDocument(in DOMString documentURL);
  readonly attribute NamedNodeMap bindingDocuments; 
};

Properties

  • bindingDocuments - The bindingDocuments property is a NamedNodeMap of all binding documents loaded by the bound document. Documents are referenced using their URLs.

Methods

  • loadBindingDocument - The loadBindingDocument method can be used to synchronously obtain the specified binding document for use within a particular document (the one on which the loadBindingDocument method was invoked). The binding document can then be modified programmatically using the DOM. Any subsequent bindings that are attached to elements within the document will be constructed from the modified binding document.
    • Parameters
      • documentURL of type DOMString - The URL of a binding document.
    • Return Value
      • Document - The return value of loadBindingDocument is the binding document used by the calling document to attach bindings that are defined in the binding document.

The ElementXBL Interface

Revision Source

<p>
</p>
<h2 name="The_DocumentXBL_Interface">The DocumentXBL Interface</h2>
<p>The <code>DocumentXBL</code> interface contains methods for loading and obtaining binding documents. The interface is implemented by DOM documents that support XBL.
</p><p><b>IDL Definition</b>
</p>
<pre>interface DocumentXBL {
  Document loadBindingDocument(in DOMString documentURL);
  readonly attribute NamedNodeMap bindingDocuments; 
};
</pre>
<p><b>Properties</b>
</p>
<ul><li> <code><b>bindingDocuments</b></code> - The <code>bindingDocuments</code> property is a <code>NamedNodeMap</code> of all binding documents loaded by the bound document. Documents are referenced using their URLs.
</li></ul>
<p><b>Methods</b>
</p>
<ul><li> <code><b>loadBindingDocument</b></code> - The <code>loadBindingDocument</code> method can be used to synchronously obtain the specified binding document for use within a particular document (the one on which the <code>loadBindingDocument </code> method was invoked). The binding document can then be modified programmatically using the DOM. Any subsequent bindings that are attached to elements within the document will be constructed from the modified binding document.
<ul><li> <i>Parameters</i>
<ul><li> <code>documentURL</code> of type <code><a class="external" href="http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510/core.html#DOMString">DOMString</a></code> - The URL of a binding document.
</li></ul>
</li><li> <i>Return Value</i>
<ul><li> <code>Document</code> - The return value of <code>loadBindingDocument</code> is the binding document used by the calling document to attach bindings that are defined in the binding document.
</li></ul>
</li></ul>
</li></ul>
<h2 name="The_ElementXBL_Interface">The ElementXBL Interface</h2>
Revert to this revision