cloneNodeClone a node, and optionally its children. function cloneNode<T extends Node>(node: T, recursive?: boolean): T;§cloneNode<T extends Node>(node: T, recursive?: boolean): T[src]§Type Parameters§T extends Node[src]§Parameters§node: T[src]§recursive?: boolean optional[src]Clone child nodes as well. §Return Type§T[src]A clone of the node.