Skip to content

Commit f6dddd9

Browse files
notoriousmangostraker
authored andcommitted
fix(aria-allowed-role): Add math to allowed roles for img element (#4658)
img element can have 'math' as its role Closes: #4657
1 parent b313406 commit f6dddd9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/standards/html-elms.js

+1
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ const htmlElms = {
360360
'button',
361361
'checkbox',
362362
'link',
363+
'math',
363364
'menuitem',
364365
'menuitemcheckbox',
365366
'menuitemradio',

test/integration/rules/aria-allowed-role/aria-allowed-role.html

+1
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ <h1 id="pass-h1-valid-role" role="none"></h1>
258258
id="pass-img-valid-role-meter"
259259
/>
260260
<img role="doc-cover" aria-label="foo" id="pass-img-valid-role-aria-label" />
261+
<img role="math" aria-label="test" id="pass-img-valid-role-math" />
261262
<img role="menuitem" title="bar" id="pass-img-valid-role-title" />
262263
<div id="image-baz">hazaar</div>
263264
<img

test/integration/rules/aria-allowed-role/aria-allowed-role.json

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
["#pass-img-valid-role-title"],
8484
["#pass-img-valid-role-aria-labelledby"],
8585
["#pass-img-valid-role-radio"],
86+
["#pass-img-valid-role-math"],
8687
["#pass-img-valid-role-meter"],
8788
["#pass-imgmap-1"],
8889
["#pass-imgmap-2"],

0 commit comments

Comments
 (0)