From 926b6a8fe7aad0444d9bc97f2e6c8564023ab58f Mon Sep 17 00:00:00 2001 From: Nelson Antunes Date: Mon, 26 Oct 2020 16:03:20 +0000 Subject: [PATCH] fix(aria-errormessage): allow aria-live="polite" on aria-errormessage target --- lib/checks/aria/aria-errormessage-evaluate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/checks/aria/aria-errormessage-evaluate.js b/lib/checks/aria/aria-errormessage-evaluate.js index 85e3d96d08..0ec8d6df52 100644 --- a/lib/checks/aria/aria-errormessage-evaluate.js +++ b/lib/checks/aria/aria-errormessage-evaluate.js @@ -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 );