Skip to content

Commit

Permalink
fix(aria-errormessage): allow aria-live="polite" on aria-errormessage…
Browse files Browse the repository at this point in the history
… target
  • Loading branch information
nantunes authored and WilcoFiers committed Oct 27, 2020
1 parent fab58d4 commit 926b6a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/checks/aria/aria-errormessage-evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function ariaErrormessageEvaluate(node, options) {
return (
idref.getAttribute('role') === 'alert' ||
idref.getAttribute('aria-live') === 'assertive' ||
idref.getAttribute('aria-live') === 'polite' ||
tokenList(node.getAttribute('aria-describedby') || '').indexOf(attr) >
-1
);
Expand Down

0 comments on commit 926b6a8

Please sign in to comment.