ally.get.shadowHost

September 28, 2016 ยท View on GitHub

Identifies the ShadowHost of an element

Description

Usage

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

Arguments

NameTypeDefaultDescription
context<selector>requiredThe 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

Contributing