t2ym / i18n-element

I18N Base Element for Lit and Polymer
Other
9 stars 1 forks source link

[ShadyDOM] Dropped child nodes imperatively appended prior to document attachment #15

Closed t2ym closed 8 years ago

t2ym commented 8 years ago

With ShadyDOM, child nodes which are imperatively appended prior to document attachment of the parent node are sometimes dropped after attachment. More concretely, some i18n-format parameter child elements are dropped in preprocessed compound binding.

Root Cause:

Imperatively created nodes and their child nodes without attachment to the document are out of control from ShadyDOM and thus inconsistencies are observed after attachment to the document.

Workaround:

Attach the imperatively created element to the document before appending its child nodes so that ShadyDOM can control the DOM operations.