=== rdftest.xul ===
=== rdftest.js ===
function onDisplay() {
var elem = document.getElementById("testbinding");
alert(elem.tagName); // works fine => mytag
alert(elem.nodeName); // works fine => mytag
elem.myTest(); // javascript error in the console :
// Error: elem.myTest is not a function
// Source File: chrome://rdftest/content/rdftest.js
}
=== mybinding.css ===
mytag {
-moz-binding: url('chrome://rdftest/skin/mybinding.xml#mybinding');
}
=== mybinding.xml ===
alert("blah");