copyTo
suspend fun copyTo(args: DOM.CopyToParameter, mode: CommandMode = CommandMode.DEFAULT): DOM.CopyToReturn
Creates a deep copy of the specified node and places it into the target container before the given anchor.
suspend fun copyTo(nodeId: Int, targetNodeId: Int, insertBeforeNodeId: Int? = null): DOM.CopyToReturn
Creates a deep copy of the specified node and places it into the target container before the given anchor.
Parameters
nodeId
Id of the node to copy.
targetNodeId
Id of the element to drop the copy into.
insertBeforeNodeId
Drop the copy before this node (if absent, the copy becomes the last child of targetNodeId
).