Edit this page

up.fragment up:fragment:kept
DOM event

This event is emitted when an existing element has been kept during a page update.

Event listeners can inspect the discarded update through event.newElement and event.newData and then modify the preserved element when necessary.

Properties

event.target Element

The fragment that has been kept.

event.newFragment Element

The discarded fragment.

event.newData Object

The value of the up-data attribute of the discarded fragment, parsed as a JSON object.

This website uses cookies to improve usability and analyze traffic.
I accept or learn more