XBL
XML-based markup language
title: "XBL" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["declarative-markup-languages", "markup-languages", "mozilla", "world-wide-web-consortium-standards", "xml-based-standards"] description: "XML-based markup language" topic_path: "technology/programming-languages" source: "https://en.wikipedia.org/wiki/XBL" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary XML-based markup language ::
XBL (XML Binding Language) is an XML-based markup language for altering the behavior of XUL widgets. It was devised at Netscape in the late 1990s as an extension of XUL.
The primary use of XBL was in the Firefox web browser, but Mozilla deprecated it in 2017 and completely removed it from Firefox in 2019. However, the UXP fork of Firefox intends to continue supporting XBL indefinitely.
Mozilla attempted to standardize XBL 2.0 via W3C in 2007, but due to lack of interest from other web browser vendors, abandoned it in 2012.
The Shadow DOM specification acknowledges XBL as a strong influence.
Overview
XUL defines the user interface layout of an application. CSS rules can be used to change the appearance of various XUL elements. But XBL is needed to alter the behavior of a XUL widget, such as a scroll bar.
An XBL file contains bindings, each of which describes the behavior of a XUL widget. The root element of an XBL file is the element, which contains one or more elements. Each `` element declares one binding, which can be attached to any XUL element. It may also possess an id attribute. A binding is assigned to an element by setting the CSS property -moz-binding to the URL of the binding's file. For example:
::code[lang=css]
scrollbar {
-moz-binding: url('somefile.xml#binding1');
}
::
References
References
- Castro. (2004-06-15). "Ars Technica sits down with Scott Collins from Mozilla.org".
- "XBL 2.0 Acknowledgments".
- (2017-10-13). "Design Review Packet - XBL Removal". [[Mozilla]].
- "XBL Graphs".
- "Pale Moon future roadmap". Pale Moon.
- "W3C news archive: 2007".
- "XBL 2.0".
- "Shadow DOM".
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::