XBL
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.[1][2]
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.[3][4] However, the UXP fork of Firefox intends to continue supporting XBL indefinitely.[5]
Mozilla attempted to standardize XBL 2.0 via W3C in 2007,[6] but due to lack of interest from other web browser vendors, abandoned it in 2012.[7]
The Shadow DOM specification acknowledges XBL as a strong influence.[8]
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 <bindings>
element, which contains one or more <binding>
elements. Each <binding>
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:
scrollbar { -moz-binding: url('somefile.xml#binding1'); }
See also
References
- ↑ Castro, Jorge O. (2004-06-15). "Ars Technica sits down with Scott Collins from Mozilla.org". p. 2. https://arstechnica.com/information-technology/2004/06/collins-interview/2/.
- ↑ "XBL 2.0 Acknowledgments". http://www.w3.org/TR/xbl/#acknowledgments.
- ↑ "Design Review Packet - XBL Removal". Mozilla. 2017-10-13. https://mozilla.github.io/firefox-browser-architecture/text/0007-xbl-design-review-packet.html.
- ↑ "XBL Graphs". https://bgrins.github.io/xbl-analysis/graph/.
- ↑ "Pale Moon future roadmap". Pale Moon. http://www.palemoon.org/roadmap.shtml.
- ↑ "W3C news archive: 2007". http://www.w3.org/News/2007#item46.
- ↑ "XBL 2.0". http://www.w3.org/TR/xbl/.
- ↑ "Shadow DOM". https://wicg.github.io/webcomponents/spec/shadow/#acknowledgments.
Original source: https://en.wikipedia.org/wiki/XBL.
Read more |