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.
Use to specify search criteria for finding element(s). You can find elements by selector, dataset entries, or attributes.
To search for the existence of an attribute or dataset property (not the value), set the value to
null
.