- @JSName('cloneNode')
- @DomName('Node.cloneNode')
- @DocsEditable()
Returns a copy of this node.
If deep
is true
, then all of this node's children and descendents are
copied as well. If deep
is false
, then only this node is copied.
Other resources
- Node.cloneNode from MDN.
Source
@JSName('cloneNode') /** * Returns a copy of this node. * * If [deep] is `true`, then all of this node's children and descendents are * copied as well. If [deep] is `false`, then only this node is copied. * * ## Other resources * * * [Node.cloneNode](https://developer.mozilla.org/en-US/docs/Web/API/Node.cloneNode) * from MDN. */ @DomName('Node.cloneNode') @DocsEditable() Node clone(bool deep) native;