Edit this page

up.element up.element.subtree(root, selector)
JavaScript function

Returns a list of a root element's descendants matching the given selector.

If the root element itself matches the selector, it is also included in the returned list.


Parameters

root
required

The root element for the search.

selector
required

The CSS selector to match.

string

Return value

A list of all matching elements.