Skip to content

Latest commit

 

History

History
53 lines (29 loc) · 1.18 KB

shadow-host.md

File metadata and controls

53 lines (29 loc) · 1.18 KB
layout tags
doc-api.html
internal, shadow-dom, argument-list

ally.get.shadowHost

Identifies the ShadowHost of an element

Description

Usage

var element = ally.get.shadowHost({
  context: '#element-to-start-from',
});

Arguments

Name Type Default Description
context <selector> required The element to start searching from. The first element of a collection is used.

Returns

HTMLElement.

Throws

TypeError if context option is not specified.

Examples

Notes

Related resources

Contributing