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.
indexOf
1 parent c3249c1 commit e3329ceCopy full SHA for e3329ce
lib/core/utils/aggregateChecks.js
@@ -23,7 +23,7 @@ axe.utils.aggregateChecks = function (nodeResOriginal) {
23
24
// map each result value to a priority
25
anyAllNone(nodeResult, function (check, type) {
26
- let i = checkMap.indexOf(check.result);
+ let i = typeof check.result === 'undefined' ? -1 : checkMap.indexOf(check.result);
27
// default to cantTell
28
check.priority = i !== -1 ? i : axe.constants.CANTTELL_PRIO;
29
@@ -72,4 +72,4 @@ axe.utils.aggregateChecks = function (nodeResOriginal) {
72
delete nodeResult.priority;
73
74
return nodeResult;
75
-};
+};
0 commit comments