Expand description
Constants used throughout the accessibility module.
§Examples
use html_generator::accessibility::constants::{
DEFAULT_NAV_ROLE, MAX_HTML_SIZE,
};
assert_eq!(DEFAULT_NAV_ROLE, "navigation");
assert!(MAX_HTML_SIZE > 0);Constants§
- DEFAULT_
BUTTON_ ROLE - Default ARIA role for buttons.
- DEFAULT_
FORM_ ROLE - Default ARIA role for forms.
- DEFAULT_
INPUT_ ROLE - Default ARIA role for inputs.
- DEFAULT_
NAV_ ROLE - Default ARIA role for navigation elements.
- MAX_
HTML_ SIZE - Maximum size of HTML input in bytes (1MB).