Repository navigation
v0.7.7
Summary
0.7.7 fixes a browser-only failure in lists without data-prop: the custom elements in a new item were not upgraded when update ran, so calling a component's method there threw TypeError, and setting a prop created an own property that hid the component's setter.
Changes
- A list without
data-propimports each new item into the document (document.importNode), so its custom elements are upgraded beforeupdateand before the list sets their props. Since 0.7.6 callsupdatebefore inserting the item, a clone from the template's inert document was never upgraded in a browser; happy-dom upgrades such clones, so only a browser showed it. - A Chrome test covers a plain list whose
updatecalls a child'sbatch()and sets its props. - The testing Skill notes that happy-dom upgrades template clones and Chrome does not until they are imported.
Breaking Changes
None.