Skip to content

v0.7.7

Choose a tag to compare

@github-actions github-actions released this 08 Nov 05:36
4549d97

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-prop imports each new item into the document (document.importNode), so its custom elements are upgraded before update and before the list sets their props. Since 0.7.6 calls update before 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 update calls a child's batch() 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.