← Back to release summary

DOM State-Preserving Move

Category
DOM
Type
Chromium catches up
Status
Enabled by default (Chrome Enabled by default)
Intent stage
None

Summary

This features adds a DOM primitive (moveBefore) that allows moving elements around a DOM tree, without resetting the element's state. This function would be available on ParentNodes, like Element, Document, DocumentFragment. When moving instead of removing/inserting, following state such as the following is preserved: - IFrames remain loaded - Active element remains focus - Popovers, fullscreen, modal dialogs remain open - CSS transitions and animations carry on

Standards & signals

View on chromestatus.com