Last Updated: October 21, 2018

XBL javascript completions (Mozilla JavaScript development)

If you are working with Firefox extensions (or Mozilla derivate) and ever used a XBL binding, you soon find there are certain JavaScript API calls you can use to make working with XBL easier, such as

  • document.getAnonymousNodes()
  • document.getAnonymousElementByAtttibute()

Unfortunately, Komodo does not provide completions for these methods by default (as they are browser specific calls), but you can easily add these XBL methods through a Komodo API catalog.

I have made a simple catalog for XBL 1.0, covering the XBL 1.0 methods which you can download and then use Komodo’s preferences “Code Intelligence->API Catalogs” to install the API catalog and get completions for these methods.

Todd Whiteman

Todd Whiteman

Todd Whiteman is the Development Lead for Komodo IDE. He works adeptly with Mozilla, Python and JavaScript to ensure that Komodo IDE is the IDE of choice for development teams. Todd has been working on Komodo IDE for nearly 6 years, adding components such as the Vi Key Bindings, Distributed Source Code Control, 64-bit Linux builds as well as Remote SSH support into Komodo IDE.