The contains JS Node returns true if other is an inclusive descendant of node; otherwise false.
node.contains(other)
A node.
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)