Skip to content

Commit

Permalink
fix(aria-hidden-body): Do not run on iframes (#2559)
Browse files Browse the repository at this point in the history
- Adding "is-initiator-matches" to aria-hidden-body.json
- Updating aria-hidden-body/pass.html integration test to include an iframe with aria-hidden='true' on the body
  • Loading branch information
gilgold authored Oct 15, 2020
1 parent 4f39299 commit 1be4354
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rules/aria-hidden-body.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"id": "aria-hidden-body",
"selector": "body",
"excludeHidden": false,
"matches": "is-initiator-matches",
"tags": ["cat.aria", "wcag2a", "wcag412"],
"metadata": {
"description": "Ensures aria-hidden='true' is not present on the document body.",
Expand Down
1 change: 1 addition & 0 deletions test/integration/full/aria-hidden-body/pass.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ <h2>Some title.</h2>
<div id="mocha"></div>
<script src="pass.js"></script>
<script src="/test/integration/adapter.js"></script>
<iframe src="fail.html"></iframe>
</body>
</html>

0 comments on commit 1be4354

Please sign in to comment.