testilo 3.8.4 → 3.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/procs/score/sp14a.js +27 -3
package/package.json
CHANGED
package/procs/score/sp14a.js
CHANGED
|
@@ -150,6 +150,10 @@ const groups = {
|
|
|
150
150
|
509: {
|
|
151
151
|
quality: 1,
|
|
152
152
|
what: 'element with a textbox role has no mechanism that allows an accessible name to be calculated'
|
|
153
|
+
},
|
|
154
|
+
510: {
|
|
155
|
+
quality: 1,
|
|
156
|
+
what: 'element with a combobox role has no mechanism that allows an accessible name to be calculated'
|
|
153
157
|
}
|
|
154
158
|
},
|
|
155
159
|
htmlcs: {
|
|
@@ -180,6 +184,10 @@ const groups = {
|
|
|
180
184
|
'e:AA.4_1_2.H91.InputCheckbox.Name': {
|
|
181
185
|
quality: 1,
|
|
182
186
|
what: 'Checkbox input has no accessible name'
|
|
187
|
+
},
|
|
188
|
+
'e:AA.4_1_2.H91.InputRadio.Name': {
|
|
189
|
+
quality: 1,
|
|
190
|
+
what: 'Radio input has no accessible name'
|
|
183
191
|
}
|
|
184
192
|
}
|
|
185
193
|
}
|
|
@@ -1398,6 +1406,10 @@ const groups = {
|
|
|
1398
1406
|
1042: {
|
|
1399
1407
|
quality: 1,
|
|
1400
1408
|
what: 'element with an option role has no aria-selected attribute'
|
|
1409
|
+
},
|
|
1410
|
+
1043: {
|
|
1411
|
+
quality: 1,
|
|
1412
|
+
what: 'element with a radio role has no aria-checked attribute'
|
|
1401
1413
|
}
|
|
1402
1414
|
},
|
|
1403
1415
|
wave: {
|
|
@@ -1456,6 +1468,10 @@ const groups = {
|
|
|
1456
1468
|
quality: 1,
|
|
1457
1469
|
what: 'element has an aria-selected attribute, which is not allowed'
|
|
1458
1470
|
},
|
|
1471
|
+
270: {
|
|
1472
|
+
quality: 1,
|
|
1473
|
+
what: 'element has an aria-required attribute, which is not allowed'
|
|
1474
|
+
},
|
|
1459
1475
|
281: {
|
|
1460
1476
|
quality: 1,
|
|
1461
1477
|
what: 'element has an aria-expanded attribute, which is not allowed'
|
|
@@ -1468,6 +1484,10 @@ const groups = {
|
|
|
1468
1484
|
quality: 1,
|
|
1469
1485
|
what: 'element has an aria-activedescendant attribute, which is not allowed'
|
|
1470
1486
|
},
|
|
1487
|
+
333: {
|
|
1488
|
+
quality: 1,
|
|
1489
|
+
what: 'element with a textbox role has an aria-owns attribute, which is not allowed'
|
|
1490
|
+
},
|
|
1471
1491
|
1066: {
|
|
1472
1492
|
quality: 1,
|
|
1473
1493
|
what: 'element has an ARIA attribute which is not valid'
|
|
@@ -2048,6 +2068,10 @@ const groups = {
|
|
|
2048
2068
|
99: {
|
|
2049
2069
|
quality: 1,
|
|
2050
2070
|
what: 'li element has no ul, ol, or list-role parent'
|
|
2071
|
+
},
|
|
2072
|
+
385: {
|
|
2073
|
+
quality: 1,
|
|
2074
|
+
what: 'list item has no ul, ol, or list-role parent or owner'
|
|
2051
2075
|
}
|
|
2052
2076
|
}
|
|
2053
2077
|
}
|
|
@@ -3352,10 +3376,10 @@ exports.scorer = async report => {
|
|
|
3352
3376
|
const {items} = result[preferredMode];
|
|
3353
3377
|
if (items && Array.isArray(items)) {
|
|
3354
3378
|
items.forEach(issue => {
|
|
3355
|
-
const {
|
|
3356
|
-
if (
|
|
3379
|
+
const {ruleId, level} = issue;
|
|
3380
|
+
if (ruleId && level) {
|
|
3357
3381
|
// Add 4 per violation, 1 per warning (“recommendation”).
|
|
3358
|
-
addDetail(which,
|
|
3382
|
+
addDetail(which, ruleId, level === 'violation' ? 4 : 1);
|
|
3359
3383
|
}
|
|
3360
3384
|
});
|
|
3361
3385
|
}
|