Expand description
Accessibility helpers and a debug-time audit.
Beyond the attribute helpers (aria_attr, set_role) and the two constructors that make a
mistake hard (iframe_titled requires a title, image takes an alt), this module is a
linter: audit finds the accessibility problems that are visible in the tree.
Structs§
- A11y
Issue - Something in the tree that will be hard or impossible to use with assistive technology.
Enums§
- Role
- A landmark or widget role, for
Element::set_role.
Functions§
- audit
- Finds accessibility problems in a subtree.
- debug_
assert_ accessible - Panics in debug builds if the subtree has accessibility problems.