[Webkit-unassigned] [Bug 150225] Prototype custom element API
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 16 23:01:47 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=150225
--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org> ---
Created attachment 263360
--> https://bugs.webkit.org/attachment.cgi?id=263360&action=review
Basic support for document.defineCustomElement
This WIP patch does the following:
- Added document.defineCustomElement(DOMString, CustomElementInterface)
- document.createElement support a custom element name
- HTMLElement constructible via custom element
With this, the following code does something useful:
class MyElement extends HTMLElement {
constructor() {
super('my-element');
return this;
}
}
document.defineCustomElement('my-element', MyElement);
new MyElement;
document.createElement('my-element');
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151017/826a0104/attachment.html>
More information about the webkit-unassigned
mailing list