Skip to content

Commit a5da703

Browse files
authored
Merge pull request #3244 from dequelabs/release-4.3.5
chore(release): 4.3.5
2 parents 505e6ba + d9ce5fb commit a5da703

File tree

9 files changed

+28
-7
lines changed

9 files changed

+28
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [4.3.5](https://github.com/dequelabs/axe-core/compare/v4.3.4...v4.3.5) (2021-10-29)
6+
7+
### Bug Fixes
8+
9+
- **aria-allowed-attr:** revert violation for non-global ARIA attrs on element without role ([#3243](https://github.com/dequelabs/axe-core/issues/3243)) ([e138fd6](https://github.com/dequelabs/axe-core/commit/e138fd6a00a8da6c48a74a614adc5dae8f2044e1))
10+
511
### [4.3.4](https://github.com/dequelabs/axe-core/compare/v4.3.3...v4.3.4) (2021-10-22)
612

713
### Bug Fixes

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "axe-core",
3-
"version": "4.3.4",
3+
"version": "4.3.5",
44
"contributors": [
55
{
66
"name": "David Sturley",

lib/checks/aria/aria-allowed-attr-evaluate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function ariaAllowedAttrEvaluate(node, options, virtualNode) {
6969
ariaAttr.forEach(attr => {
7070
preChecks[attr] = validateRowAttrs;
7171
});
72-
if (allowed) {
72+
if (role && allowed) {
7373
for (let i = 0; i < attrs.length; i++) {
7474
const attrName = attrs[i];
7575
if (validateAttr(attrName) && preChecks[attrName]?.()) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "axe-core",
33
"description": "Accessibility engine for automated Web UI testing",
4-
"version": "4.3.4",
4+
"version": "4.3.5",
55
"license": "MPL-2.0",
66
"engines": {
77
"node": ">=4"

sri-history.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,5 +290,9 @@
290290
"4.3.4": {
291291
"axe.js": "sha256-C62RaRaF4cx65nFcFNMq5qhRPs0K3syB/x32hxSnDFM=",
292292
"axe.min.js": "sha256-Qw1EkY/ShOt08vZ7tZXSskZI3bQ6HGw9t9F6Rq05MAo="
293+
},
294+
"4.3.5": {
295+
"axe.js": "sha256-pBzsgJIL4mZHcw50O3sj5f1ZYkMYLG659lHq6Qrkuzc=",
296+
"axe.min.js": "sha256-PVZfyAKgcOWwy7tmB01H7BVjKLjtFW5QO94AIXxWkcw="
293297
}
294298
}

test/checks/aria/allowed-attr.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ describe('aria-allowed-attr', function() {
5959
assert.isNull(checkContext._data);
6060
});
6161

62+
it('should return true for non-global attributes if there is no role', function() {
63+
var vNode = queryFixture(
64+
'<div id="target" tabindex="1" aria-selected="true" aria-owns="foo"></div>'
65+
);
66+
67+
assert.isTrue(
68+
axe.testUtils
69+
.getCheckEvaluate('aria-allowed-attr')
70+
.call(checkContext, null, null, vNode)
71+
);
72+
});
73+
6274
it('should not report on invalid attributes', function() {
6375
var vNode = queryFixture(
6476
'<div role="dialog" id="target" tabindex="1" aria-cats="true"></div>'

test/integration/rules/aria-allowed-attr/failures.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
<kbd aria-label="value" id="fail27"></kbd>
2929
<abbr aria-label="value" id="fail28"></abbr>
3030
<custom-elm aria-label="value" id="fail29"></custom-elm>
31-
<audio
31+
<!-- <audio
3232
src="/test/assets/moon-speech.mp3"
3333
controls
3434
aria-orientation="horizontal"
3535
id="fail30"
36-
></audio>
36+
></audio> -->
3737

3838
<div role="table">
3939
<div role="row" aria-expanded="false" id="fail35"></div>

test/integration/rules/aria-allowed-attr/failures.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
["#fail27"],
3232
["#fail28"],
3333
["#fail29"],
34-
["#fail30"],
3534
["#fail35"],
3635
["#fail36"],
3736
["#fail37"],

0 commit comments

Comments
 (0)