Skip to content

Commit

Permalink
fix(aria--allowed-role): Allow iframe role=none
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Feb 11, 2019
1 parent c60a7d1 commit a4fa44d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/commons/aria/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ lookupTable.role = {
context: null,
implicit: ['body'],
unsupported: false,
allowedElements: ['article', 'embed', 'iframe', 'section', 'svg', 'object']
allowedElements: ['article', 'embed', 'iframe', 'object', 'section', 'svg']
},
'doc-abstract': {
type: 'section',
Expand Down Expand Up @@ -1407,9 +1407,11 @@ lookupTable.role = {
'h5',
'h6',
'header',
'iframe',
'li',
'ol',
'section',
'ol'
'ul'
]
},
{
Expand Down Expand Up @@ -1491,9 +1493,11 @@ lookupTable.role = {
'h5',
'h6',
'header',
'iframe',
'li',
'ol',
'section',
'ol'
'ul'
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ <h1 id='pass-h1-valid-role' role='none'></h1>
<aside id="pass-aside-role-region" role="region"></aside>
<form action="" id='pass-form-role-search' role="search"></form>
<ul><li id="pass-li-role-sep" role="separator"></li></ul>
<iframe src="dummy.html" role="presentation" id="pass-iframe-presentation"></iframe>
<iframe src="dummy.html" role="none" id="pass-iframe-none"></iframe>
<my-custom-element id="pass-custom-element-any-role" role='navigation'></my-custom-element>
<dd id='fail-dd-no-role' role='link'></dd>
<dt id='fail-dt-no-role' role='banner'></dt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
["#pass-aside-role-region"],
["#pass-form-role-search"],
["#pass-li-role-sep"],
["#pass-iframe-presentation"],
["#pass-iframe-none"],
["#pass-custom-element-any-role"]
],
"violations": [
Expand Down
Empty file.

0 comments on commit a4fa44d

Please sign in to comment.