testilo 41.5.6 → 41.5.8
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/tic49.js +34 -26
- package/procs/score/tsp49.js +3 -2
package/package.json
CHANGED
package/procs/score/tic49.js
CHANGED
|
@@ -251,6 +251,11 @@ exports.issues = {
|
|
|
251
251
|
quality: 0,
|
|
252
252
|
what: 'h1-h6 may fail to be used to identify headings [speculative]'
|
|
253
253
|
},
|
|
254
|
+
'QW-BP2': {
|
|
255
|
+
variable: false,
|
|
256
|
+
quality: 1,
|
|
257
|
+
what: 'Image text alternative is not concise'
|
|
258
|
+
},
|
|
254
259
|
'QW-BP17': {
|
|
255
260
|
variable: false,
|
|
256
261
|
quality: 1,
|
|
@@ -320,6 +325,11 @@ exports.issues = {
|
|
|
320
325
|
variable: false,
|
|
321
326
|
quality: 1,
|
|
322
327
|
what: 'ol, ul or dl may fail to be used for a list or group of links [speculative]'
|
|
328
|
+
},
|
|
329
|
+
'QW-WCAG-T35': {
|
|
330
|
+
variable: false,
|
|
331
|
+
quality: 1,
|
|
332
|
+
what: 'Several elements have this id attribute value [invalid]'
|
|
323
333
|
}
|
|
324
334
|
}
|
|
325
335
|
}
|
|
@@ -409,11 +419,6 @@ exports.issues = {
|
|
|
409
419
|
variable: false,
|
|
410
420
|
quality: 1,
|
|
411
421
|
what: 'id attribute value is not unique'
|
|
412
|
-
},
|
|
413
|
-
'QW-WCAG-T35': {
|
|
414
|
-
variable: false,
|
|
415
|
-
quality: 1,
|
|
416
|
-
what: 'Several elements have this id attribute value'
|
|
417
422
|
}
|
|
418
423
|
}
|
|
419
424
|
}
|
|
@@ -821,14 +826,14 @@ exports.issues = {
|
|
|
821
826
|
'QW-WCAG-T8': {
|
|
822
827
|
variable: false,
|
|
823
828
|
quality: 1,
|
|
824
|
-
what: 'Text alternative is
|
|
829
|
+
what: 'Text alternative is suspect'
|
|
825
830
|
}
|
|
826
831
|
},
|
|
827
832
|
wave: {
|
|
828
833
|
alt_suspicious: {
|
|
829
834
|
variable: false,
|
|
830
835
|
quality: 1,
|
|
831
|
-
what: 'Image text alternative is
|
|
836
|
+
what: 'Image text alternative is suspect'
|
|
832
837
|
}
|
|
833
838
|
}
|
|
834
839
|
}
|
|
@@ -900,7 +905,7 @@ exports.issues = {
|
|
|
900
905
|
weight: 4,
|
|
901
906
|
tools: {
|
|
902
907
|
nuVal: {
|
|
903
|
-
'^CSS: padding[-a-z]*: .+ negative values are not allowed
|
|
908
|
+
'^CSS: padding[-a-z]*: .+ negative values are not allowed.*$': {
|
|
904
909
|
variable: true,
|
|
905
910
|
quality: 1,
|
|
906
911
|
what: 'One of the CSS padding values is negative'
|
|
@@ -915,7 +920,7 @@ exports.issues = {
|
|
|
915
920
|
weight: 4,
|
|
916
921
|
tools: {
|
|
917
922
|
nuVal: {
|
|
918
|
-
'^CSS: gap: .+ negative values are not allowed
|
|
923
|
+
'^CSS: gap: .+ negative values are not allowed.*$': {
|
|
919
924
|
variable: true,
|
|
920
925
|
quality: 1,
|
|
921
926
|
what: 'CSS gap value is negative'
|
|
@@ -1001,13 +1006,6 @@ exports.issues = {
|
|
|
1001
1006
|
what: 'Linked img alt value longer than 160 characters'
|
|
1002
1007
|
}
|
|
1003
1008
|
},
|
|
1004
|
-
qualWeb: {
|
|
1005
|
-
'QW-BP2': {
|
|
1006
|
-
variable: false,
|
|
1007
|
-
quality: 1,
|
|
1008
|
-
what: 'Image text alternative is not concise'
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
1009
|
wave: {
|
|
1012
1010
|
alt_long: {
|
|
1013
1011
|
variable: false,
|
|
@@ -2284,11 +2282,6 @@ exports.issues = {
|
|
|
2284
2282
|
}
|
|
2285
2283
|
},
|
|
2286
2284
|
qualWeb: {
|
|
2287
|
-
'QW-WCAG-T10': {
|
|
2288
|
-
variable: false,
|
|
2289
|
-
quality: 1,
|
|
2290
|
-
what: 'Adjacent image and text links for the same resource are not combined'
|
|
2291
|
-
},
|
|
2292
2285
|
'QW-BP13': {
|
|
2293
2286
|
variable: false,
|
|
2294
2287
|
quality: 1,
|
|
@@ -2319,6 +2312,21 @@ exports.issues = {
|
|
|
2319
2312
|
}
|
|
2320
2313
|
}
|
|
2321
2314
|
},
|
|
2315
|
+
linkNameRisk: {
|
|
2316
|
+
summary: 'image link text suspect',
|
|
2317
|
+
why: 'Keyboard-only user may misunderstand the effect of following a link',
|
|
2318
|
+
wcag: '2.4.4',
|
|
2319
|
+
weight: 1,
|
|
2320
|
+
tools: {
|
|
2321
|
+
qualWeb: {
|
|
2322
|
+
'QW-WCAG-T10': {
|
|
2323
|
+
variable: false,
|
|
2324
|
+
quality: 0.8,
|
|
2325
|
+
what: 'Link name repeats its image name and/or that name is suspect'
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
},
|
|
2322
2330
|
pageNewWindow: {
|
|
2323
2331
|
summary: 'page immediately opens window',
|
|
2324
2332
|
why: 'User promised a document gets another document, too',
|
|
@@ -3071,7 +3079,7 @@ exports.issues = {
|
|
|
3071
3079
|
weight: 4,
|
|
3072
3080
|
tools: {
|
|
3073
3081
|
nuVal: {
|
|
3074
|
-
'^Saw a start tag [a-z]
|
|
3082
|
+
'^Saw a start tag [a-z]+.*$': {
|
|
3075
3083
|
variable: true,
|
|
3076
3084
|
quality: 1,
|
|
3077
3085
|
what: 'Element does not exist in HTML'
|
|
@@ -5723,7 +5731,7 @@ exports.issues = {
|
|
|
5723
5731
|
quality: 1,
|
|
5724
5732
|
what: 'Table row has a column count larger than that of the first row'
|
|
5725
5733
|
},
|
|
5726
|
-
'^Table column \d+ established by element td has no cells beginning in it
|
|
5734
|
+
'^Table column \d+ established by element td has no cells beginning in it.*$': {
|
|
5727
5735
|
variable: true,
|
|
5728
5736
|
quality: 1,
|
|
5729
5737
|
what: 'Element is td but the prior cells in its table column do not exist'
|
|
@@ -8816,7 +8824,7 @@ exports.issues = {
|
|
|
8816
8824
|
quality: 1,
|
|
8817
8825
|
what: 'Space is misused as a CSS operator'
|
|
8818
8826
|
},
|
|
8819
|
-
'^CSS: .+: , is an incorrect operator
|
|
8827
|
+
'^CSS: .+: , is an incorrect operator.*$': {
|
|
8820
8828
|
variable: true,
|
|
8821
8829
|
quality: 1,
|
|
8822
8830
|
what: 'Comma is misused as a CSS operator'
|
|
@@ -8886,7 +8894,7 @@ exports.issues = {
|
|
|
8886
8894
|
quality: 1,
|
|
8887
8895
|
what: 'Invalid closing tag'
|
|
8888
8896
|
},
|
|
8889
|
-
'^End tag [a-z]
|
|
8897
|
+
'^End tag [a-z]+.*$': {
|
|
8890
8898
|
variable: true,
|
|
8891
8899
|
quality: 1,
|
|
8892
8900
|
what: 'Closing tag of an ineligible element'
|
|
@@ -9121,7 +9129,7 @@ exports.issues = {
|
|
|
9121
9129
|
quality: 1,
|
|
9122
9130
|
what: 'Invalid element name'
|
|
9123
9131
|
},
|
|
9124
|
-
'^Quote . in attribute name
|
|
9132
|
+
'^Quote . in attribute name\\. Probable cause: Matching quote missing somewhere earlier.*$': {
|
|
9125
9133
|
variable: true,
|
|
9126
9134
|
quality: 1,
|
|
9127
9135
|
what: 'Attribute name includes an apostrophe or double quotation mark'
|
package/procs/score/tsp49.js
CHANGED
|
@@ -37,6 +37,7 @@ const {issues} = require('./tic49');
|
|
|
37
37
|
const scoreProcID = 'tsp49';
|
|
38
38
|
|
|
39
39
|
// WEIGHT CONSTANTS
|
|
40
|
+
|
|
40
41
|
// How much is added to the page score by each component.
|
|
41
42
|
|
|
42
43
|
// 1. Issue
|
|
@@ -117,9 +118,9 @@ exports.scorer = report => {
|
|
|
117
118
|
// If there are any acts in the report:
|
|
118
119
|
const {acts} = report;
|
|
119
120
|
if (Array.isArray(acts) && acts.length) {
|
|
120
|
-
// If any of them are test acts:
|
|
121
121
|
const testActs = acts.filter(act => act.type === 'test');
|
|
122
122
|
const testTools = new Set(testActs.map(act => act.which));
|
|
123
|
+
// If any of them are test acts:
|
|
123
124
|
if (testActs.length) {
|
|
124
125
|
// Initialize the score data.
|
|
125
126
|
const score = {
|
|
@@ -402,7 +403,7 @@ exports.scorer = report => {
|
|
|
402
403
|
+ summary.prevention
|
|
403
404
|
+ summary.log
|
|
404
405
|
+ summary.latency;
|
|
405
|
-
// Add
|
|
406
|
+
// Add a, or replace the, score property of the report.
|
|
406
407
|
report.score = score;
|
|
407
408
|
}
|
|
408
409
|
// Otherwise, i.e. if none of them is a test act:
|