Imperatively created elements (i18n-preference, i18n-attr-repo) via document.createElement() have no shadowRoot after they are attached to HTML document.
If <i18n-preference> is declaratively attached to HTML document, the element has its own shadowRoot from <dom-module> expectedly.
It seems static get template() of Polymer.Element is called when static get is() is not set.
Looking into when and how to call static get template() appropriately. Is this a bug in Polymer 2.0-preview?
Imperatively created elements (
i18n-preference
,i18n-attr-repo
) viadocument.createElement()
have no shadowRoot after they are attached to HTML document.If
<i18n-preference>
is declaratively attached to HTML document, the element has its own shadowRoot from<dom-module>
expectedly.It seems
static get template()
ofPolymer.Element
is called whenstatic get is()
is not set.Looking into when and how to call
static get template()
appropriately. Is this a bug in Polymer 2.0-preview?