Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 895 Bytes

attribute.md

File metadata and controls

45 lines (31 loc) · 895 Bytes
layout tags
doc-api.html
data

ally.map.attribute

Map of all WAI-ARIA states and properties.

Description

// example structure
var map = {
  // http://www.w3.org/TR/wai-aria/states_and_properties#aria-invalid
  'aria-invalid': {
    'default': 'false',
    values: ['true', 'false', 'grammar', 'spelling'],
  },

  // http://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']);

Related Resources

Contributing