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

NameTypeDefaultDescription
context<selector>documentElementThe 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.

Notes

Contributing