dom/accessibility library Dom

Functions

getRoles(Node container, {bool hidden = false}) Map<String, List> Accessibility
Returns a map, indexed by role name, with each value being an array of elements in container which have that implicit ARIA role.
isInaccessible(Element element) bool Accessibility
Returns whether or not element should be excluded from the accessibility API by the browser.
logRoles(Node container, {bool hidden = false}) → void Accessibility
Prints a list of all the implicit ARIA roles within container, each role containing a list of all of the nodes which match that role.