getRootNode

The getRootNode JS Node returns node’s root.

Syntax

node.getRootNode()
node.getRootNode(options)

Parameters

composed

Include shadow root.

Examples

1 · void

2 · options · composed · false

3 · options · composed · true

baseURI

childNodes

cloneNode

compareDocumentPosition

contains

firstChild

hasChildNodes

isConnected

isEqualNode

lastChild

nextSibling

nodeName

nodeType

normalize

ownerDocument

parentElement

parentNode

previousSibling

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu