cloneNode

The cloneNode JS Node returns a copy of node. If deep is true, the copy also includes the node’s descendants.

Syntax

node.cloneNode([deep = false])

Parameters

deep

Include the node’s descendants.

Examples

1 · void

2 · deep

baseURI

childNodes

compareDocumentPosition

contains

firstChild

getRootNode

hasChildNodes

isConnected

isEqualNode

lastChild

nextSibling

nodeName

nodeType

normalize

ownerDocument

parentElement

parentNode

previousSibling

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu