We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 651366c commit 93265cbCopy full SHA for 93265cb
src/rules/aria-role.js
@@ -54,9 +54,9 @@ module.exports = {
54
// value isn't in the form of a literal.
55
if (value === undefined || value === null) { return; }
56
57
- const normalizedValues = String(value).split(' ');
+ const values = String(value).split(' ');
58
const validRoles = [...roles.keys()].filter(role => roles.get(role).abstract === false);
59
- const isValid = normalizedValues.every(val => validRoles.indexOf(val) > -1);
+ const isValid = values.every(val => validRoles.indexOf(val) > -1);
60
61
if (isValid === true) { return; }
62
0 commit comments