State-preserving move in DOM