ibm-js / delite

HTML Custom Element / Widget infrastructure
http://ibm-js.github.io/delite/
Other
68 stars 28 forks source link

Store: don't try to parse DOM content as JSON #494

Closed wkeese closed 6 years ago

wkeese commented 6 years ago

Store has a feature to specify initial content in the markup as JSON. If a Store subclass contains child elements, then don't try to parse the Store's textContent as JSON.

This probably doesn't make cloneNode() work correctly, but it doesn't fail quite as spectacularly.

An alternative would be to remove that JSON parsing feature entirely.