--- title: XBL slug: Archive/Mozilla/XBL tags: - XBL translation_of: Archive/Mozilla/XBL ---

XML 绑定语言XBL,有时也被称为可扩展绑定语言)是用于描述可以附加到其他文档中的元素的“绑定”(bindings)的语言。绑定所附加到的元素被称为绑定元素(bound element),会获取绑定中指定的新行为。

绑定可以包含在绑定元素上注册的事件处理器(event handlers)、可从绑定元素访问的新方法(methods)和属性(properties)、以及插入到绑定元素下的匿名内容。

Most XUL widgets are at least partially implemented using XBL. You can build your own reusable widgets from existing XUL, HTML, SVG, and other primitives using XBL.

定义

XBL 1.0 是一个 Mozilla-specific technology,不是一个 W3C 标准。至少两个基于它的标准已经被废弃:sXBL 和 XBL 2.0。

警告!sXBL 和 XBL 2.0 已被废弃。

Some differences between sXBL and XBL2 are listed in an article by Anne van Kesteren (November, 2005).

An overview of differences between Mozilla XBL and XBL2 is in a newsgroup posting by Jonas Sicking (April, 2007).

Still living "Shadow DOM" related specs

参见

社区