layout | tags |
---|---|
doc-api.html |
argument-options, shadow-dom |
finds all elements hosting a ShadowRoot
.
var elements = ally.query.shadowHosts({
context: '.within-filter-selector',
});
Name | Type | Default | Description |
---|---|---|---|
context | <selector> |
documentElement |
The scope of the DOM in which to search. The first element of a collection is used. |
Array of HTMLElement
.
- Added in
v1.1.0
.