ally.map.attribute
September 26, 2016 ยท View on GitHub
Map of all WAI-ARIA states and properties.
Description
// example structure
var map = {
// https://www.w3.org/TR/wai-aria/states_and_properties#aria-invalid
'aria-invalid': {
'default': 'false',
values: ['true', 'false', 'grammar', 'spelling'],
},
// https://www.w3.org/TR/wai-aria/states_and_properties#aria-relevant
'aria-relevant': {
'default': 'additions text',
multiple: true,
values: ['additions', 'removals', 'text', 'all'],
},
};
Usage
console.log(ally.map.attribute['aria-busy']);