Function findParentElement
-
Parameters
- el: Element
Starting element.
Optionaloptions: FindParentOptionsFiltering and traversal options.
Returns Element
The first acceptable parent element or null.
- el: Element
Starting element.
Optionaloptions: FindParentOptions
Filtering and traversal options.
The first acceptable parent element or null.
Provides a data defined mechanism to walk up the DOM parent element chain and return the first ancestor that satisfies multiple filtering rules (stacking context, class, ID, selector, predicate) while optionally limiting traversal depth.