🔗ally.get.shadowHost
Identifies the ShadowHost of an element
🔗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
🔗Throws
TypeError if context option is not specified.
🔗Related resources
ally.get.shadowHostParentsuses this module to identify theShadowHostancestry