moveTo
suspend fun moveTo(args: DOM.MoveToParameter, mode: CommandMode = CommandMode.DEFAULT): DOM.MoveToReturn
Moves node into the new container, places it before the given anchor.
suspend fun moveTo(nodeId: Int, targetNodeId: Int, insertBeforeNodeId: Int? = null): DOM.MoveToReturn
Moves node into the new container, places it before the given anchor.
Parameters
nodeId
Id of the node to move.
targetNodeId
Id of the element to drop the moved node into.
insertBeforeNodeId
Drop node before this one (if absent, the moved node becomes the last child of targetNodeId
).