<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Prototype custom element API"
   href="https://bugs.webkit.org/show_bug.cgi?id=150225#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Prototype custom element API"
   href="https://bugs.webkit.org/show_bug.cgi?id=150225">bug 150225</a>
              from <span class="vcard"><a class="email" href="mailto:rniwa&#64;webkit.org" title="Ryosuke Niwa &lt;rniwa&#64;webkit.org&gt;"> <span class="fn">Ryosuke Niwa</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=263360" name="attach_263360" title="Basic support for document.defineCustomElement">attachment 263360</a> <a href="attachment.cgi?id=263360&amp;action=edit" title="Basic support for document.defineCustomElement">[details]</a></span>
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');</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>