15.8. Debug Corner: XBL Diagnosis

There is nothing mysterious about XBL bindings; the window and document objects are both available to all property, method, handler, and constructor/destructor code. All the debugging techniques available to normal scripts are also available to scripts used in XBL.

XBL is not as mysterious to work with as RDF either. Syntax errors in an XBL document are reported to the JavaScript console, and the messages supplied are readable.

The two most frequent problems when creating bindings are the result of XML namespaces and internal JavaScript properties. Note the following regarding namespaces:

  • The XBL inherit property must be prefixed with a namespace identifier like xbl: because the default namespace for the tag ...

Get Rapid Application Development with Mozilla™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.