Skip to content

Commit

Permalink
Merge pull request #21 from kurosawa-takeshi/update-props
Browse files Browse the repository at this point in the history
Update ariaPropsMap per latest ARIA 1.1 Rec.
  • Loading branch information
jessebeach committed Nov 26, 2019
2 parents 16bef39 + 058a12b commit 08ac721
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/ariaPropsMap.js
Expand Up @@ -53,22 +53,25 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
['aria-describedby', {
'type': 'idlist'
}],
['aria-details', {
'type': 'id'
}],
['aria-disabled', {
'type': 'boolean'
}],
['aria-dropeffect', {
'type': 'tokenlist',
'values': [
'copy',
'move',
'link',
'execute',
'popup',
'none'
'link',
'move',
'none',
'popup'
]
}],
['aria-errormessage', {
'type': 'string'
'type': 'id'
}],
['aria-expanded', {
'type': 'boolean',
Expand All @@ -94,7 +97,8 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
]
}],
['aria-hidden', {
'type': 'boolean'
'type': 'boolean',
'allowundefined': true
}],
['aria-invalid', {
'type': 'token',
Expand All @@ -120,9 +124,9 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
['aria-live', {
'type': 'token',
'values': [
'assertive',
'off',
'polite',
'assertive'
'polite'
]
}],
['aria-modal', {
Expand All @@ -138,6 +142,7 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
'type': 'token',
'values': [
'vertical',
'undefined',
'horizontal'
]
}],
Expand All @@ -160,9 +165,9 @@ const ariaPropsMap: MapOfARIAPropertyDefinitions = new Map([
'type': 'tokenlist',
'values': [
'additions',
'all',
'removals',
'text',
'all'
]
}],
['aria-required', {
Expand Down

0 comments on commit 08ac721

Please sign in to comment.