Skip to content

Commit

Permalink
fix(aria): adding support for aria-expanded in menuitem (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
devaradhanm authored and marcysutton committed Sep 15, 2017
1 parent 3b591de commit b4c42fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/commons/aria/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ lookupTables.role = {
'menuitem': {
type: 'widget',
attributes: {
allowed: ['aria-posinset', 'aria-setsize']
allowed: ['aria-posinset', 'aria-setsize', 'aria-expanded']
},
owned: null,
nameFrom: ['author', 'contents'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/rules/aria-allowed-attr/passes.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

<div role="menubar" id="pass32" aria-activedescendant="value" aria-expanded="value" aria-orientation="value" aria-atomic="value" aria-busy="value" aria-controls="value" aria-describedby="value" aria-disabled="value" aria-dropeffect="value" aria-flowto="value" aria-grabbed="value" aria-haspopup="value" aria-hidden="value" aria-invalid="value" aria-keyshortcuts="value" aria-label="value" aria-labelledby="value" aria-live="value" aria-owns="value" aria-relevant="value">ok</div>

<div role="menuitem" id="pass33" aria-posinset="value" aria-setsize="value" aria-atomic="value" aria-busy="value" aria-controls="value" aria-describedby="value" aria-disabled="value" aria-dropeffect="value" aria-flowto="value" aria-grabbed="value" aria-haspopup="value" aria-hidden="value" aria-invalid="value" aria-keyshortcuts="value" aria-label="value" aria-labelledby="value" aria-live="value" aria-owns="value" aria-relevant="value">ok</div>
<div role="menuitem" id="pass33" aria-posinset="value" aria-expanded="value" aria-setsize="value" aria-atomic="value" aria-busy="value" aria-controls="value" aria-describedby="value" aria-disabled="value" aria-dropeffect="value" aria-flowto="value" aria-grabbed="value" aria-haspopup="value" aria-hidden="value" aria-invalid="value" aria-keyshortcuts="value" aria-label="value" aria-labelledby="value" aria-live="value" aria-owns="value" aria-relevant="value">ok</div>

<div role="menuitemcheckbox" id="pass34" aria-checked="value" aria-posinset="value" aria-setsize="value" aria-atomic="value" aria-busy="value" aria-controls="value" aria-describedby="value" aria-disabled="value" aria-dropeffect="value" aria-flowto="value" aria-grabbed="value" aria-haspopup="value" aria-hidden="value" aria-invalid="value" aria-keyshortcuts="value" aria-label="value" aria-labelledby="value" aria-live="value" aria-owns="value" aria-relevant="value">ok</div>

Expand Down

0 comments on commit b4c42fe

Please sign in to comment.