- From: Frank Lemanschik <notifications@github.com>
- Date: Fri, 27 Dec 2019 05:19:54 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 27 December 2019 13:19:56 UTC
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/716#issuecomment-569268162
Received on Friday, 27 December 2019 13:19:56 UTC