webcomponents / webcomponents/polyfills
[Custom Elements] Custom element not "recognized" when added with Element.outerHTML
Open
Package: custom-elements
Severity: Medium
Type: Feature
wontfix
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
This is happening with Firefox (not tested with others browsers that need this polyfill and of course in Chrome this works well) and with the 1.0.0-rc.1 version.
So if you add a custom element with Element.outerHTML, the custom element seems to not be "recognized" (the constructor is not called).
I wrote a simple test page where you can see the bug: http://vrac.pwet.fr/customelement_outerhtml.html
Contributor guide
Assessment
This issue has not been assessed yet.