Skip to content

Commit

Permalink
fix(aria-allowed-attr): allow aria-details (#1956)
Browse files Browse the repository at this point in the history
* fix(aria-allowed-attr): allow aria-details

* fix test

* test
  • Loading branch information
straker authored Dec 20, 2019
1 parent 6b44454 commit 79e1c58
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 11 deletions.
1 change: 0 additions & 1 deletion doc/aria-supported.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ For a detailed description about how accessibility support is decided, see [How
| aria-attribute | axe-core support |
| ---------------- | ---------------- |
| aria-describedat | No |
| aria-details | No |
5 changes: 4 additions & 1 deletion lib/commons/aria/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ lookupTable.attributes = {
unstandardized: true
},
'aria-details': {
unsupported: true
type: 'idref',
allowEmpty: true,
unsupported: false
},
'aria-disabled': {
type: 'boolean',
Expand Down Expand Up @@ -250,6 +252,7 @@ lookupTable.globalAttributes = [
'aria-controls',
'aria-current',
'aria-describedby',
'aria-details',
'aria-disabled',
'aria-dropeffect',
'aria-flowto',
Expand Down
1 change: 0 additions & 1 deletion test/integration/rules/aria-allowed-attr/failures.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@

<!-- unsupported attributes -->
<div aria-describedat="#fail4" id="fail5">fail</div>
<div aria-details="fail5" id="fail6">fail</div>
9 changes: 1 addition & 8 deletions test/integration/rules/aria-allowed-attr/failures.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"description": "aria-allowed-attr failing tests",
"rule": "aria-allowed-attr",
"violations": [
["#fail1"],
["#fail2"],
["#fail3"],
["#fail4"],
["#fail5"],
["#fail6"]
]
"violations": [["#fail1"], ["#fail2"], ["#fail3"], ["#fail4"], ["#fail5"]]
}
Loading

0 comments on commit 79e1c58

Please sign in to comment.