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

adoptNode

Description

The adoptNode of Document for JS moves node from another document and returns it.

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

Syntax

node = document.adoptNode(node)

Parameters

node

A node.

Examples

1

2

importNode

characterSet

compatMode

contentType

createCDATASection

createComment

createDocumentFragment

createElement

createElementNS

createProcessingInstruction

createTextNode

doctype

Document

documentElement

documentURI

exitPictureInPicture

getElementsByClassName

getElementsByTagName

getElementsByTagNameNS

implementation

importNode

pictureInPictureEnabled

URL

write

writeln

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu