Tag name of elements to return.
CSS selector string to find the elements.
Optional
parent: null | ElementLikeOptional Element or EventTarget for parent.
Array of elements of tag name TN
if found, otherwise empty array.
SyntaxError if the specified selector
is invalid.
Query the DOM using one of the specified options
and find the elements
that match the criteria in the options
object in the optionally specified
parent
.
Tag name of elements to return.
Options for finding the elements.
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.
Array of elements of tag name TN
if found, otherwise empty array.
SyntaxError if withSelector
in the specified options
is invalid.
TypeError if the specified options
are invalid.
Query the DOM to find the elements matching the specified CSS
selector
in the optionally specifiedparent
.