Skip to content

ally.js

JavaScript library to help modern web applications with accessibility concerns by making accessibility simpler

🔗ally.get.shadowHost

Identifies the ShadowHost of an element

🔗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.

🔗Related resources

🔗Contributing