blob: 9189593c0a811a6115d1e34287e1d12b90ce78a9 (
plain)
1
2
3
4
5
6
7
8
|
var proto = Object.create(HTMLElement.prototype);
proto.magicNumber = 42;
proto.connectedCallback = function() {
finishTest(this.magicNumber === 42);
};
document.registerElement("x-foo", { prototype: proto });
document.firstChild.appendChild(document.createElement("x-foo"));
|