Skip to content

Commit

Permalink
fix(aria-allowed-role): add meter to allowed roles for named img (#4055)
Browse files Browse the repository at this point in the history
* Update: add meter to allowed roles for named img

closes #4054

* fix spacing

* add meter img test

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

* Update aria-allowed-role.json
  • Loading branch information
scottaohara authored Jun 16, 2023
1 parent d0a49d3 commit 173f29d
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 @@ -358,6 +358,7 @@ const htmlElms = {
'menuitem',
'menuitemcheckbox',
'menuitemradio',
'meter',
'option',
'progressbar',
'radio',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ <h1 id="pass-h1-valid-role" role="none"></h1>
<div id="fail-dpub-4" role="doc-noteref">ok</div>
<!-- images -->
<div id="fail-dpub-5" role="doc-cover">ok</div>
<img src="#" role="meter" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" alt="test" id="pass-img-valid-role-meter">
<img role="doc-cover" aria-label="foo" id="pass-img-valid-role-aria-label" />
<img role="menuitem" title="bar" id="pass-img-valid-role-title" />
<div id="image-baz">hazaar</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
["#pass-img-valid-role-title"],
["#pass-img-valid-role-aria-labelledby"],
["#pass-img-valid-role-radio"],
["#pass-img-valid-role-meter"],
["#pass-imgmap-1"],
["#pass-imgmap-2"],
["#pass-navnone-1"],
Expand Down

0 comments on commit 173f29d

Please sign in to comment.