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

matches

Description

The matches of Element for JS returns true if matching selectors against element’s root yields element; otherwise false.

Syntax

element.matches(selectors)

Parameters

selectors

Patterns that match elements in a tree structure.

Examples

1 · false

2 · true

closest

attachShadow

classList

className

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttribute

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

namespaceURI

outerHTML

prefix

removeAttribute

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

slot

tagName

toggleAttribute

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu