webcomponents / webcomponents/polyfills

[Custom Elements] Custom element not "recognized" when added with Element.outerHTML

Open
#106 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.