t2ym / i18n-element

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

[IE11][ShadyDOM][hybrid] Unexpectedly dropped textContent on parent.innerHTML = '' #31

Closed t2ym closed 8 years ago

t2ym commented 8 years ago

With IE11 and ShadyDOM for Polymer 1.x, textContent of child nodes are unexpectedly dropped on parent.innerHTML = ''

On the other hand, ShadyDOM for Polymer 2.x throws an exception on parent.innerHTML = '' if child nodes are implicitly removed from the parent node (Issue #14, #15).

Therefore, the timing of clearing up innerHTML has to be altered depending on the running ShadyDOM versions.