XBL 1.0 Reference

  • Revision slug: XBL/XBL_1.0_Reference
  • Revision title: XBL 1.0 Reference
  • Revision id: 105220
  • Created:
  • Creator: V K
  • Is current revision? No
  • Comment /* Abstract */

Revision Content

Abstract

This document describes Extensible Binding Language (XBL) 1.0 as implemented in the most recent Firefox browser (Firefox 1.5.0.2 at the moment this was written).

There are numerous adjustments in this implementation as opposed to earlier XBL outlines, and far not all of them yet reflected in this document. The work is still in progress: please keep it in your mind while using the provided information.

Extensible Binding Language is a XML-based markup language for describing bindings that can be attached to elements in other documents. Bindings can be attached to elements using Cascading Style Sheets (CSS) or scripting. The element that the binding is attached to, called the bound element, acquires the new behavior specified by the binding.

Bindings can contain event handlers that are registered on the bound element, an implementation of new methods and properties that become accessible from the bound element, and anonymous content that is inserted around the bound element.

XBL Elements

Binding Attachment and Detachment

DOM Interfaces

Anonymous Content

Binding Implementations

Event Handlers

Example - Sticky Notes

References

Original Document Information

  • Last Updated Date: January 3, 2003

Revision Source

<p>
</p>
<h2 name="Abstract">Abstract</h2>
<p>This document describes Extensible Binding Language (XBL) 1.0 as implemented in the most recent Firefox browser (Firefox 1.5.0.2 at the moment this was written).
</p><p>There are numerous adjustments in this implementation as opposed to earlier XBL outlines, and far not all of them yet reflected in this document. The work is still in progress: please keep it in your mind while using the provided information. 
</p><p>Extensible Binding Language is a XML-based markup language for describing bindings that can be attached to elements in other documents. Bindings can be attached to elements using Cascading Style Sheets (<a href="en/CSS">CSS</a>) or scripting. The element that the binding is attached to, called the <i>bound element</i>, acquires the new behavior specified by the binding.
</p><p>Bindings can contain event handlers that are registered on the bound element, an implementation of new methods and properties that become accessible from the bound element, and anonymous content that is inserted around the bound element.
</p>
<h2 name="XBL_Elements"><a href="en/XBL/XBL_1.0_Reference/Elements">XBL Elements</a></h2>
<ul><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#bindings">bindings</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#binding">binding</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#_content">content</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#children">children</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#implementation">implementation</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#constructor">constructor</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#destructor">destructor</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#method">method</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#parameter">parameter</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#body">body</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#field">field</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#property">property</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#getter">getter</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#setter">setter</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#handlers">handlers</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#handler">handler</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#resources">resources</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#stylesheet">stylesheet</a></code>
</li><li> <code><a href="en/XBL/XBL_1.0_Reference/Elements#image">image</a></code>
</li></ul>
<h2 name="Binding_Attachment_and_Detachment"><a href="en/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment">Binding Attachment and Detachment</a></h2>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment#Attachment_using_element.style_property">Attachment using element.style property</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment#Attachment_using_the_DOM">Attachment using the DOM</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment#.3Cconstructor.3E_call">&lt;constructor&gt; call</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment#.3Cdestructor.3E_call">&lt;destructor&gt; call</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Attachment_and_Detachment#Binding_Documents">Binding Documents</a>
</li></ul>
<h2 name="DOM_Interfaces"><a href="en/XBL/XBL_1.0_Reference/DOM_Interfaces">DOM Interfaces</a></h2>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/DOM_Interfaces#The_DocumentXBL_Interface">The DocumentXBL Interface</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/DOM_Interfaces#The_ElementXBL_Interface">The ElementXBL Interface</a>
</li></ul>
<h2 name="Anonymous_Content"><a href="en/XBL/XBL_1.0_Reference/Anonymous_Content">Anonymous Content</a></h2>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Introduction">Introduction</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Scoping_and_Access_Using_the_DOM">Scoping and Access Using the DOM</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Content_Generation">Content Generation</a>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Rules_for_Generation">Rules for Generation</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#The_contentgenerated_Event">The contentgenerated Event</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#The_contentdestroyed_Event">The contentdestroyed Event</a>
</li></ul>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Attribute_Forwarding">Attribute Forwarding</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Insertion_Points">Insertion Points</a>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#.3Cchildren.3E_and_.3Celement.3E">&lt;children&gt; and &lt;element&gt;</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Handling_DOM_Changes">Handling DOM Changes</a>
</li></ul>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Event_Flow_and_Targeting">Event Flow and Targeting</a>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Flow_and_Targeting_Across_Scopes">Flow and Targeting Across Scopes</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Focus_and_Blur_Events">Focus and Blur Events</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Mouseover_and_Mouseout_Events">Mouseover and Mouseout Events</a>
</li></ul>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Anonymous_Content_and_CSS">Anonymous Content and CSS</a>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Selectors_and_Scopes">Selectors and Scopes</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Anonymous_Content#Binding_Stylesheets">Binding Stylesheets</a>
</li></ul>
</li></ul>
<h2 name="Binding_Implementations"><a href="en/XBL/XBL_1.0_Reference/Binding_Implementations">Binding Implementations</a></h2>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Implementations#Introduction">Introduction</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Implementations#Methods">Methods</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Implementations#Properties">Properties</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Binding_Implementations#Inheritance_of_Implementations">Inheritance of Implementations</a>
</li></ul>
<h2 name="Event_Handlers"><a href="en/XBL/XBL_1.0_Reference/Event_Handlers">Event Handlers</a></h2>
<h2 name="Example_-_Sticky_Notes"><a href="en/XBL/XBL_1.0_Reference/Example_Sticky_Notes">Example - Sticky Notes</a></h2>
<ul><li> <a href="en/XBL/XBL_1.0_Reference/Example_Sticky_Notes#notes.html">notes.html</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Example_Sticky_Notes#notes.xml">notes.xml</a>
</li><li> <a href="en/XBL/XBL_1.0_Reference/Example_Sticky_Notes#notes.css">notes.css</a>
</li></ul>
<h2 name="References">References</h2>
<div class="originaldocinfo">
<h2 name="Original_Document_Information"> Original Document Information </h2>
<ul><li> Last Updated Date: January 3, 2003
</li></ul>
</div>
Revert to this revision