ally.query.shadowHosts
September 28, 2016 ยท View on GitHub
finds all elements hosting a ShadowRoot.
Description
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.
Throws
Examples
Changes
- Added in
v1.1.0.