Ian Hickson a écrit :
On Thu, 14 Sep 2006, Simon Pieters wrote:
  
I'd suggest using ".xml" as file extension here instead of ".xbl". Using
".xbl" in examples might lead to mislabeled XBL on the Web.
    
Agreed. Changed.

  
The example below still has an occurence of ".xbl" in 'foo.xbl'

Assume that foo.xml defines a binding that applies to all "foo" elements. The following script uses loadBindingDocument() to ensure that foo.xbl is loaded, then creates a foo element and uses it.

// load the binding document
document.loadBindingDocument('foo.xml'); // this is synchronous

// create an element 
var foo = document.createElement('foo'); // binds synchronously too
foo.myCustomMethod(); // calls the binding's implementation


Cyril

Reply via email to