You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DOM State-preserving move (Node.prototype.moveBefore) #375
We're proposing a new DOM primitive, Node.prototype.moveBefore, a drop-in replacement for Node.prototype.insertBefore, that allows moving elements in a node tree without incurring state-resets. See details at the explainer and at whatwg/dom#1255. Would love to shape this together with WebKit + Mozilla.
Reacted by Oliver Williams, Darryl Yeo, Jayden Pearse and Andrew
I suggest we resolve this as "position: support" one week from now. There are a couple of design aspects that will need to be worked through, such as handling animations and creating a suitable mutation record, but overall this looks like the correct way to add a new tree primitive to the DOM.
Reacted by Noam Rosenthal, Bramus, ken7253, mkrause and jack
Activity
[-]State-preserving move (`Node.prototype.moveBefore`)[/-][+]DOM State-preserving move (`Node.prototype.moveBefore`)[/+]annevk commentedon Aug 30, 2024
I suggest we resolve this as "position: support" one week from now. There are a couple of design aspects that will need to be worked through, such as handling animations and creating a suitable mutation record, but overall this looks like the correct way to add a new tree primitive to the DOM.
KaruppuTiger commentedon Jul 13, 2026