- From: Frank Lemanschik <notifications@github.com>
- Date: Fri, 27 Dec 2019 05:20:55 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 27 December 2019 13:20:58 UTC
i found out we need the following: to have a easy implamentation of this we would need ```js document.createElement('p',class extends ParagraphHTMLElement {}) document.createElement('my-element',class extends HTMLElement {}) ``` note that we don't need to supply extends since we don't hornor the is attribute when we create the element our self its not the ui thats upgrading the element . ## Alternativ we could expose upgrade api. ```js customElements.upgrade(el,class extends ParagraphHTMLElement {}) ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/861#issuecomment-569268351
Received on Friday, 27 December 2019 13:20:58 UTC