Skip to content

Commit

Permalink
fix(aria-allowed-role): Add math to allowed roles for img element (#4658
Browse files Browse the repository at this point in the history
)

img element can have 'math' as its role

Closes: #4657
  • Loading branch information
notoriousmango authored Jan 8, 2025
1 parent d836833 commit 95b6c18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/standards/html-elms.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ const htmlElms = {
'button',
'checkbox',
'link',
'math',
'menuitem',
'menuitemcheckbox',
'menuitemradio',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ <h1 id="pass-h1-valid-role" role="none"></h1>
id="pass-img-valid-role-meter"
/>
<img role="doc-cover" aria-label="foo" id="pass-img-valid-role-aria-label" />
<img role="math" aria-label="test" id="pass-img-valid-role-math" />
<img role="menuitem" title="bar" id="pass-img-valid-role-title" />
<div id="image-baz">hazaar</div>
<img
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
["#pass-img-valid-role-title"],
["#pass-img-valid-role-aria-labelledby"],
["#pass-img-valid-role-radio"],
["#pass-img-valid-role-math"],
["#pass-img-valid-role-meter"],
["#pass-imgmap-1"],
["#pass-imgmap-2"],
Expand Down

0 comments on commit 95b6c18

Please sign in to comment.