contains

The contains JS Node returns true if other is an inclusive descendant of node; otherwise false.

Syntax

node.contains(other)

Parameters

other

A node.

Examples

1 · true

2 · false

baseURI

childNodes

cloneNode

compareDocumentPosition

firstChild

getRootNode

hasChildNodes

isConnected

isEqualNode

lastChild

nextSibling

nodeName

nodeType

normalize

ownerDocument

parentElement

parentNode

previousSibling

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu