Skip to content

Latest commit

 

History

History
54 lines (29 loc) · 1.07 KB

shadow-hosts.md

File metadata and controls

54 lines (29 loc) · 1.07 KB
layout tags
doc-api.html
argument-options, shadow-dom

ally.query.shadowHosts

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.

Notes

Related resources

Contributing