Re: [w3c/webcomponents] Why do we need a registry? (#861)

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