From 95b6c184872cf70c7f54a96aa813a9e8bc2c066d Mon Sep 17 00:00:00 2001 From: Seong Min Park <32555977+notoriousmango@users.noreply.github.com> Date: Thu, 9 Jan 2025 06:02:30 +0900 Subject: [PATCH] fix(aria-allowed-role): Add math to allowed roles for img element (#4658) img element can have 'math' as its role Closes: #4657 --- lib/standards/html-elms.js | 1 + test/integration/rules/aria-allowed-role/aria-allowed-role.html | 1 + test/integration/rules/aria-allowed-role/aria-allowed-role.json | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/standards/html-elms.js b/lib/standards/html-elms.js index 46f07815ad..041d2a9438 100644 --- a/lib/standards/html-elms.js +++ b/lib/standards/html-elms.js @@ -360,6 +360,7 @@ const htmlElms = { 'button', 'checkbox', 'link', + 'math', 'menuitem', 'menuitemcheckbox', 'menuitemradio', diff --git a/test/integration/rules/aria-allowed-role/aria-allowed-role.html b/test/integration/rules/aria-allowed-role/aria-allowed-role.html index 80a9223492..f8cbe29717 100644 --- a/test/integration/rules/aria-allowed-role/aria-allowed-role.html +++ b/test/integration/rules/aria-allowed-role/aria-allowed-role.html @@ -258,6 +258,7 @@
id="pass-img-valid-role-meter" /> +