summaryrefslogtreecommitdiffstats
path: root/dom/base/test/chrome/registerElement_ep.js
blob: de32ba51c69915d150609f1c3caecfecfe3b87b3 (plain)
1
2
3
4
5
6
7
8
var proto = Object.create(HTMLElement.prototype);
proto.magicNumber = 42;
proto.createdCallback = function() {
  finishTest(this.magicNumber === 42);
};
document.registerElement("x-foo", { prototype: proto });

document.createElement("x-foo");