Tag name of the Element representation of target
.
CSS selector string to find the element.
Optional
parent: null | ElementLikeOptional Element or EventTarget for parent.
Element of tag name TN
if found, otherwise null
.
SyntaxError if the specified selector
is invalid.
Query the DOM to find the element using one of the specified options
in the
optionally specified parent
.
Tag name of the Element representation of target
.
Options for finding the element.
Optional
parent?: Target | nullOptional parent Element, EventTarget, or CSS selector.
Optional
tagName?: TagNameOptional element tag name to limit search.
Optional
withAttributes?: Attributes<TN> | AttributeName[] | AttributeNameKey/value pairs of attributes to search for.
Optional
withDataset?: Dataset | DatasetKey[] | DatasetKeyKey/value pairs of dataset entries to search for.
Optional
withSelector?: CssSelectorCSS selector search string.
Element of tag name TN
if found, otherwise null
.
SyntaxError if withSelector
in the specified options
is invalid.
TypeError if the specified options
are invalid.
Query the DOM for an element matching the specified CSS
selector
in the optionally specifiedparent
.