mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Add custom element constructor definition
This commit is contained in:
1 parent
ac3a1f059f
commit
4cfb34b702
2 files changed
+8
-2
No files matched your search
@@ -10,10 +10,12 @@ var fooProto = Object.create(HTMLElement.prototype, {
|
||||
}
|
||||
});
|
||||
|
||||
document.registerElement("x-foo", {
|
||||
var XFoo = document.registerElement("x-foo", {
|
||||
prototype: fooProto
|
||||
});
|
||||
|
||||
var xFoo = new XFoo();
|
||||
|
||||
window.CustomElements.hasNative;
|
||||
window.CustomElements.flags;
|
||||
window.CustomElements.ready;
|
||||
|
||||
Reference in new issue
Block a user