Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

importNode

Description

The importNode of Document for JS returns a copy of node. If deep is true, the copy also includes the node’s descendants.

If node is a document or a shadow root, throws a "NotSupportedError" DOMException.

Syntax

clone = document.importNode(node [, deep = false])

Parameters

node

A node.

deep

Include the node’s descendants.

Examples

1 · node

2 · deep

adoptNode

adoptNode

characterSet

compatMode

contentType

createCDATASection

createComment

createDocumentFragment

createElement

createElementNS

createProcessingInstruction

createTextNode

doctype

Document

documentElement

documentURI

exitPictureInPicture

getElementsByClassName

getElementsByTagName

getElementsByTagNameNS

implementation

pictureInPictureEnabled

URL

write

writeln

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu