Skip to content

Instantly share code, notes, and snippets.

@dougrathbone
Created October 29, 2013 21:45
Show Gist options
  • Save dougrathbone/7223216 to your computer and use it in GitHub Desktop.
Save dougrathbone/7223216 to your computer and use it in GitHub Desktop.
Mozilla XBL CSS binding example
CSS:
body {
-moz-binding: url(/scripts/script.xbl#execute);
}
XBL:
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="execute">
<implementation>
<constructor>
alert("Hi there");
</constructor>
</implementation>
</binding>
</bindings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment