This feature is experimental. It may be changed or removed in a future version without prior notice or deprecation.
Matches all elements that have a descendant matching the given selector.
up.element.all('div:has(span)') matches all
<div> elements with at least one
<span> among its descendants:
<div> <span>Will be matched</span> </div> <div> Will NOT be matched </div> <div> <span>Will be matched</span> </div>
You can also use
:has() in jQuery.