layout | tags |
---|---|
doc-api.html |
internal, shadow-dom, argument-list |
Identifies the ShadowHost
of an element
var element = ally.get.shadowHost({
context: '#element-to-start-from',
});
Name | Type | Default | Description |
---|---|---|---|
context | <selector> |
required | The element to start searching from. The first element of a collection is used. |
TypeError
if context
option is not specified.
ally.get.shadowHostParents
uses this module to identify theShadowHost
ancestry