# ally.query.shadowHosts
finds all elements hosting a ShadowRoot
.
# Usage
var elements = ally.query.shadowHosts({
context: '.within-filter-selector',
});
# Arguments
Name | Type | Default | Description |
---|---|---|---|
context | <selector> |
documentElement |
The scope of the DOM in which to search. The first element of a collection is used. |
# Returns
Array of HTMLElement
.
# Changes
- Added in
v1.1.0
.