testaro-issues 0.2.1 → 0.4.0
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/README.md +1 -1
- package/dist/index.cjs +162 -97
- package/dist/index.d.cts +117 -84
- package/dist/index.d.mts +117 -84
- package/dist/index.mjs +159 -98
- package/package.json +5 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region src/index.d.ts
|
|
2
2
|
type IssueID = keyof typeof issuesData;
|
|
3
|
+
type IssueEngineRuleCounts = Record<string, number>;
|
|
3
4
|
interface Issue {
|
|
4
5
|
summary: string;
|
|
5
6
|
why: string;
|
|
@@ -7,7 +8,7 @@ interface Issue {
|
|
|
7
8
|
weight: number;
|
|
8
9
|
max?: number;
|
|
9
10
|
}
|
|
10
|
-
interface
|
|
11
|
+
interface ruleIDsByType {
|
|
11
12
|
invariant: string[];
|
|
12
13
|
variable: string[];
|
|
13
14
|
}
|
|
@@ -29,7 +30,7 @@ declare const issuesData: {
|
|
|
29
30
|
};
|
|
30
31
|
readonly duplicateAttribute: {
|
|
31
32
|
readonly summary: 'duplicate attribute';
|
|
32
|
-
readonly why: 'Browser processes the
|
|
33
|
+
readonly why: 'Browser processes the page improperly';
|
|
33
34
|
readonly wcag: '4.1.1';
|
|
34
35
|
readonly weight: 2;
|
|
35
36
|
};
|
|
@@ -59,7 +60,7 @@ declare const issuesData: {
|
|
|
59
60
|
};
|
|
60
61
|
readonly regionNoText: {
|
|
61
62
|
readonly summary: 'region not named';
|
|
62
|
-
readonly why: 'User cannot get help surveying the parts of the
|
|
63
|
+
readonly why: 'User cannot get help surveying the parts of the page';
|
|
63
64
|
readonly wcag: '4.1.2';
|
|
64
65
|
readonly weight: 4;
|
|
65
66
|
};
|
|
@@ -172,7 +173,7 @@ declare const issuesData: {
|
|
|
172
173
|
readonly weight: 4;
|
|
173
174
|
};
|
|
174
175
|
readonly gapBad: {
|
|
175
|
-
readonly summary: 'CSS
|
|
176
|
+
readonly summary: 'CSS gap invalid';
|
|
176
177
|
readonly why: 'Content is displayed improperly';
|
|
177
178
|
readonly wcag: '4.1';
|
|
178
179
|
readonly weight: 4;
|
|
@@ -233,14 +234,14 @@ declare const issuesData: {
|
|
|
233
234
|
};
|
|
234
235
|
readonly pageLanguage: {
|
|
235
236
|
readonly summary: 'page language missing';
|
|
236
|
-
readonly why: 'Speaking helper may mispronounce the
|
|
237
|
+
readonly why: 'Speaking helper may mispronounce the page text';
|
|
237
238
|
readonly wcag: '3.1.1';
|
|
238
239
|
readonly weight: 4;
|
|
239
240
|
readonly max: 1;
|
|
240
241
|
};
|
|
241
242
|
readonly pageLanguageBad: {
|
|
242
243
|
readonly summary: 'page language invalid';
|
|
243
|
-
readonly why: 'Speaking helper may mispronounce the
|
|
244
|
+
readonly why: 'Speaking helper may mispronounce the page text';
|
|
244
245
|
readonly wcag: '3.1.1';
|
|
245
246
|
readonly weight: 4;
|
|
246
247
|
readonly max: 1;
|
|
@@ -319,7 +320,7 @@ declare const issuesData: {
|
|
|
319
320
|
};
|
|
320
321
|
readonly internalLinkBroken: {
|
|
321
322
|
readonly summary: 'internal link broken';
|
|
322
|
-
readonly why: 'User cannot reach a promised
|
|
323
|
+
readonly why: 'User cannot reach a promised page location';
|
|
323
324
|
readonly wcag: '1.3.1';
|
|
324
325
|
readonly weight: 4;
|
|
325
326
|
};
|
|
@@ -517,7 +518,7 @@ declare const issuesData: {
|
|
|
517
518
|
};
|
|
518
519
|
readonly pageNewWindow: {
|
|
519
520
|
readonly summary: 'page immediately opens window';
|
|
520
|
-
readonly why: 'User promised a
|
|
521
|
+
readonly why: 'User promised a page gets another page, too';
|
|
521
522
|
readonly wcag: '3.2.5';
|
|
522
523
|
readonly weight: 3;
|
|
523
524
|
readonly max: 1;
|
|
@@ -627,7 +628,7 @@ declare const issuesData: {
|
|
|
627
628
|
};
|
|
628
629
|
readonly metaBansZoom: {
|
|
629
630
|
readonly summary: 'meta bans zoom';
|
|
630
|
-
readonly why: 'User cannot adjust the
|
|
631
|
+
readonly why: 'User cannot adjust the page size for readability';
|
|
631
632
|
readonly wcag: '1.4.4';
|
|
632
633
|
readonly weight: 4;
|
|
633
634
|
readonly max: 1;
|
|
@@ -711,7 +712,7 @@ declare const issuesData: {
|
|
|
711
712
|
readonly weight: 4;
|
|
712
713
|
};
|
|
713
714
|
readonly linkElementMisplaced: {
|
|
714
|
-
readonly summary: 'link element
|
|
715
|
+
readonly summary: 'link element misplaced';
|
|
715
716
|
readonly why: 'Document fails to get a needed external resource';
|
|
716
717
|
readonly wcag: '1.3.1';
|
|
717
718
|
readonly weight: 4;
|
|
@@ -722,39 +723,63 @@ declare const issuesData: {
|
|
|
722
723
|
readonly wcag: '1.3.1';
|
|
723
724
|
readonly weight: 4;
|
|
724
725
|
};
|
|
725
|
-
readonly
|
|
726
|
-
readonly summary: 'meta
|
|
727
|
-
readonly why: '
|
|
728
|
-
readonly wcag: '
|
|
726
|
+
readonly metaAttributesWrong: {
|
|
727
|
+
readonly summary: 'prohibited or missing meta attributes';
|
|
728
|
+
readonly why: 'Browser processes the page incorrectly';
|
|
729
|
+
readonly wcag: '4.1';
|
|
730
|
+
readonly weight: 3;
|
|
731
|
+
};
|
|
732
|
+
readonly metaAttributeBad: {
|
|
733
|
+
readonly summary: 'meta attribute value invalid';
|
|
734
|
+
readonly why: 'Browser processes the page incorrectly';
|
|
735
|
+
readonly wcag: '4.1';
|
|
736
|
+
readonly weight: 3;
|
|
737
|
+
};
|
|
738
|
+
readonly metaDuplicated: {
|
|
739
|
+
readonly summary: 'meta element duplicated';
|
|
740
|
+
readonly why: 'Browser may process the page incorrectly';
|
|
741
|
+
readonly wcag: '4.1';
|
|
742
|
+
readonly weight: 3;
|
|
743
|
+
};
|
|
744
|
+
readonly metaCharsetLate: {
|
|
745
|
+
readonly summary: 'meta charset declared too late';
|
|
746
|
+
readonly why: 'Browser may display incorrect text';
|
|
747
|
+
readonly wcag: '4.1';
|
|
748
|
+
readonly weight: 4;
|
|
749
|
+
};
|
|
750
|
+
readonly metaXUACompatible: {
|
|
751
|
+
readonly summary: 'meta X-UA-Compatible incomplete';
|
|
752
|
+
readonly why: 'Internet Explorer may display the page incorrectly';
|
|
753
|
+
readonly wcag: '4.1';
|
|
729
754
|
readonly weight: 3;
|
|
730
755
|
};
|
|
731
756
|
readonly metaMisplaced: {
|
|
732
757
|
readonly summary: 'meta element in invalid location';
|
|
733
|
-
readonly why: '
|
|
734
|
-
readonly wcag: '
|
|
758
|
+
readonly why: 'Browser may process the page incorrectly';
|
|
759
|
+
readonly wcag: '4.1';
|
|
735
760
|
readonly weight: 4;
|
|
736
761
|
};
|
|
737
762
|
readonly stylesheetBanned: {
|
|
738
763
|
readonly summary: 'stylesheet prohibited';
|
|
739
|
-
readonly why: 'Browser displays the
|
|
764
|
+
readonly why: 'Browser displays the page improperly';
|
|
740
765
|
readonly wcag: '1.4';
|
|
741
766
|
readonly weight: 3;
|
|
742
767
|
};
|
|
743
768
|
readonly scriptNotDeferrable: {
|
|
744
769
|
readonly summary: 'script element invalidly deferred';
|
|
745
|
-
readonly why: 'Browser processes the
|
|
770
|
+
readonly why: 'Browser processes the page improperly';
|
|
746
771
|
readonly wcag: '1.3.1';
|
|
747
772
|
readonly weight: 4;
|
|
748
773
|
};
|
|
749
774
|
readonly scriptBanned: {
|
|
750
775
|
readonly summary: 'script prohibited';
|
|
751
|
-
readonly why: 'Browser processes the
|
|
776
|
+
readonly why: 'Browser processes the page improperly';
|
|
752
777
|
readonly wcag: '4.1';
|
|
753
778
|
readonly weight: 3;
|
|
754
779
|
};
|
|
755
780
|
readonly scriptElementBad: {
|
|
756
781
|
readonly summary: 'script element invalid';
|
|
757
|
-
readonly why: 'Browser processes the
|
|
782
|
+
readonly why: 'Browser processes the page improperly';
|
|
758
783
|
readonly wcag: '1.3.1';
|
|
759
784
|
readonly weight: 4;
|
|
760
785
|
};
|
|
@@ -778,7 +803,7 @@ declare const issuesData: {
|
|
|
778
803
|
};
|
|
779
804
|
readonly iframeTitleBad: {
|
|
780
805
|
readonly summary: 'iframe not named';
|
|
781
|
-
readonly why: 'User cannot get help on the topic of an embedded
|
|
806
|
+
readonly why: 'User cannot get help on the topic of an embedded page';
|
|
782
807
|
readonly wcag: '4.1.2';
|
|
783
808
|
readonly weight: 4;
|
|
784
809
|
};
|
|
@@ -976,13 +1001,13 @@ declare const issuesData: {
|
|
|
976
1001
|
};
|
|
977
1002
|
readonly headingEmpty: {
|
|
978
1003
|
readonly summary: 'heading empty';
|
|
979
|
-
readonly why: 'User cannot get help on the topic of a part of the
|
|
1004
|
+
readonly why: 'User cannot get help on the topic of a part of the page';
|
|
980
1005
|
readonly wcag: '2.4.6';
|
|
981
1006
|
readonly weight: 3;
|
|
982
1007
|
};
|
|
983
1008
|
readonly headingOfNothing: {
|
|
984
1009
|
readonly summary: 'heading heads nothing';
|
|
985
|
-
readonly why: 'Helper misdescribes the
|
|
1010
|
+
readonly why: 'Helper misdescribes the page';
|
|
986
1011
|
readonly wcag: '1.3.1';
|
|
987
1012
|
readonly weight: 2;
|
|
988
1013
|
};
|
|
@@ -1024,112 +1049,112 @@ declare const issuesData: {
|
|
|
1024
1049
|
};
|
|
1025
1050
|
readonly docTypeMissing: {
|
|
1026
1051
|
readonly summary: 'DOCTYPE missing';
|
|
1027
|
-
readonly why: 'Browser processes the
|
|
1052
|
+
readonly why: 'Browser processes the page improperly';
|
|
1028
1053
|
readonly wcag: '1.3.1';
|
|
1029
1054
|
readonly weight: 4;
|
|
1030
1055
|
readonly max: 1;
|
|
1031
1056
|
};
|
|
1032
1057
|
readonly docTypeMisplaced: {
|
|
1033
1058
|
readonly summary: 'DOCTYPE in invalid location';
|
|
1034
|
-
readonly why: 'Browser processes the
|
|
1059
|
+
readonly why: 'Browser processes the page improperly';
|
|
1035
1060
|
readonly wcag: '1.3.1';
|
|
1036
1061
|
readonly weight: 4;
|
|
1037
1062
|
readonly max: 1;
|
|
1038
1063
|
};
|
|
1039
1064
|
readonly docTypeBad: {
|
|
1040
1065
|
readonly summary: 'DOCTYPE invalid';
|
|
1041
|
-
readonly why: 'Browser processes the
|
|
1066
|
+
readonly why: 'Browser processes the page improperly';
|
|
1042
1067
|
readonly wcag: '1.3.1';
|
|
1043
1068
|
readonly weight: 3;
|
|
1044
1069
|
readonly max: 1;
|
|
1045
1070
|
};
|
|
1046
1071
|
readonly pageTitleBad: {
|
|
1047
1072
|
readonly summary: 'page title invalid';
|
|
1048
|
-
readonly why: 'Browser processes the
|
|
1073
|
+
readonly why: 'Browser processes the page improperly';
|
|
1049
1074
|
readonly wcag: '1.3.1';
|
|
1050
1075
|
readonly weight: 3;
|
|
1051
1076
|
readonly max: 1;
|
|
1052
1077
|
};
|
|
1053
1078
|
readonly pageTitle: {
|
|
1054
1079
|
readonly summary: 'page title missing';
|
|
1055
|
-
readonly why: 'User is not informed of the topic of the
|
|
1080
|
+
readonly why: 'User is not informed of the topic of the page';
|
|
1056
1081
|
readonly wcag: '2.4.2';
|
|
1057
1082
|
readonly weight: 4;
|
|
1058
1083
|
readonly max: 1;
|
|
1059
1084
|
};
|
|
1060
1085
|
readonly headElementsBad: {
|
|
1061
1086
|
readonly summary: 'element in head invalid';
|
|
1062
|
-
readonly why: 'Browser processes the
|
|
1087
|
+
readonly why: 'Browser processes the page improperly';
|
|
1063
1088
|
readonly wcag: '4.1.1';
|
|
1064
1089
|
readonly weight: 3;
|
|
1065
1090
|
};
|
|
1066
1091
|
readonly headingLevelSkip: {
|
|
1067
1092
|
readonly summary: 'heading level skipped';
|
|
1068
|
-
readonly why: 'Helper misdescribes the
|
|
1093
|
+
readonly why: 'Helper misdescribes the page';
|
|
1069
1094
|
readonly wcag: '1.3.1';
|
|
1070
1095
|
readonly weight: 2;
|
|
1071
1096
|
};
|
|
1072
1097
|
readonly headingStructure: {
|
|
1073
1098
|
readonly summary: 'heading structure illogical';
|
|
1074
|
-
readonly why: 'Helper misdescribes the
|
|
1099
|
+
readonly why: 'Helper misdescribes the page';
|
|
1075
1100
|
readonly wcag: '1.3.1';
|
|
1076
1101
|
readonly weight: 2;
|
|
1077
1102
|
};
|
|
1078
1103
|
readonly headingConfusion: {
|
|
1079
1104
|
readonly summary: 'heading names repeated';
|
|
1080
|
-
readonly why: 'User cannot differentiate parts of the
|
|
1105
|
+
readonly why: 'User cannot differentiate parts of the page';
|
|
1081
1106
|
readonly wcag: '1.3.1';
|
|
1082
1107
|
readonly weight: 2;
|
|
1083
1108
|
};
|
|
1084
1109
|
readonly headingMisuseRisk: {
|
|
1085
1110
|
readonly summary: 'heading used for styling?';
|
|
1086
|
-
readonly why: 'User cannot understand the
|
|
1111
|
+
readonly why: 'User cannot understand the page structure';
|
|
1087
1112
|
readonly wcag: '1.3.1';
|
|
1088
1113
|
readonly weight: 2;
|
|
1089
1114
|
};
|
|
1090
1115
|
readonly headingNone: {
|
|
1091
1116
|
readonly summary: 'headings missing';
|
|
1092
|
-
readonly why: 'User cannot survey parts of the
|
|
1117
|
+
readonly why: 'User cannot survey parts of the page';
|
|
1093
1118
|
readonly wcag: '1.3.1';
|
|
1094
1119
|
readonly weight: 3;
|
|
1095
1120
|
readonly max: 1;
|
|
1096
1121
|
};
|
|
1097
1122
|
readonly h1Not1: {
|
|
1098
1123
|
readonly summary: 'not exactly 1 h1 heading';
|
|
1099
|
-
readonly why: 'User cannot understand the topic of the
|
|
1124
|
+
readonly why: 'User cannot understand the topic of the page';
|
|
1100
1125
|
readonly wcag: '1.3.1';
|
|
1101
1126
|
readonly weight: 2;
|
|
1102
1127
|
readonly max: 1;
|
|
1103
1128
|
};
|
|
1104
1129
|
readonly h1Not1st: {
|
|
1105
1130
|
readonly summary: 'h1 not 1st heading';
|
|
1106
|
-
readonly why: 'User cannot understand the topic of the
|
|
1131
|
+
readonly why: 'User cannot understand the topic of the page';
|
|
1107
1132
|
readonly wcag: '1.3.1';
|
|
1108
1133
|
readonly weight: 3;
|
|
1109
1134
|
readonly max: 1;
|
|
1110
1135
|
};
|
|
1111
1136
|
readonly docHeadingNotH1: {
|
|
1112
1137
|
readonly summary: 'primary heading not h1';
|
|
1113
|
-
readonly why: 'User cannot understand the topic of the
|
|
1138
|
+
readonly why: 'User cannot understand the topic of the page';
|
|
1114
1139
|
readonly wcag: '1.3.1';
|
|
1115
1140
|
readonly weight: 2;
|
|
1116
1141
|
readonly max: 1;
|
|
1117
1142
|
};
|
|
1118
1143
|
readonly articleHeadingless: {
|
|
1119
1144
|
readonly summary: 'article heading missing';
|
|
1120
|
-
readonly why: 'User cannot understand the topic of a part of the
|
|
1145
|
+
readonly why: 'User cannot understand the topic of a part of the page';
|
|
1121
1146
|
readonly wcag: '1.3.1';
|
|
1122
1147
|
readonly weight: 1;
|
|
1123
1148
|
};
|
|
1124
1149
|
readonly sectionHeadingless: {
|
|
1125
1150
|
readonly summary: 'section heading missing';
|
|
1126
|
-
readonly why: 'User cannot understand the topic of a part of the
|
|
1151
|
+
readonly why: 'User cannot understand the topic of a part of the page';
|
|
1127
1152
|
readonly wcag: '1.3.1';
|
|
1128
1153
|
readonly weight: 1;
|
|
1129
1154
|
};
|
|
1130
1155
|
readonly headingLength: {
|
|
1131
1156
|
readonly summary: 'heading abnormally long';
|
|
1132
|
-
readonly why: 'User has difficulty understanding the topic of a part of the
|
|
1157
|
+
readonly why: 'User has difficulty understanding the topic of a part of the page';
|
|
1133
1158
|
readonly wcag: '1.3.1';
|
|
1134
1159
|
readonly weight: 1;
|
|
1135
1160
|
};
|
|
@@ -1159,7 +1184,7 @@ declare const issuesData: {
|
|
|
1159
1184
|
};
|
|
1160
1185
|
readonly hrConfusionRisk: {
|
|
1161
1186
|
readonly summary: 'hr misused';
|
|
1162
|
-
readonly why: 'User cannot get help on the nature of segments of the
|
|
1187
|
+
readonly why: 'User cannot get help on the nature of segments of the page';
|
|
1163
1188
|
readonly wcag: '1.3.1';
|
|
1164
1189
|
readonly weight: 1;
|
|
1165
1190
|
};
|
|
@@ -1177,7 +1202,7 @@ declare const issuesData: {
|
|
|
1177
1202
|
};
|
|
1178
1203
|
readonly pseudoHeadingRisk: {
|
|
1179
1204
|
readonly summary: 'heading-like styles dubious';
|
|
1180
|
-
readonly why: 'User may be unable to understand the topic of a part of the
|
|
1205
|
+
readonly why: 'User may be unable to understand the topic of a part of the page';
|
|
1181
1206
|
readonly wcag: '1.3.1';
|
|
1182
1207
|
readonly weight: 1;
|
|
1183
1208
|
};
|
|
@@ -1507,7 +1532,7 @@ declare const issuesData: {
|
|
|
1507
1532
|
};
|
|
1508
1533
|
readonly visibleBulk: {
|
|
1509
1534
|
readonly summary: 'large visible-element count';
|
|
1510
|
-
readonly why: 'User cannot easily find items in the
|
|
1535
|
+
readonly why: 'User cannot easily find items in the page';
|
|
1511
1536
|
readonly wcag: '2.4';
|
|
1512
1537
|
readonly weight: 1;
|
|
1513
1538
|
readonly max: 1;
|
|
@@ -1574,90 +1599,90 @@ declare const issuesData: {
|
|
|
1574
1599
|
};
|
|
1575
1600
|
readonly noLandmarks: {
|
|
1576
1601
|
readonly summary: 'no landmarks';
|
|
1577
|
-
readonly why: 'User cannot get help on how the
|
|
1602
|
+
readonly why: 'User cannot get help on how the page is organized';
|
|
1578
1603
|
readonly wcag: '1.3.6';
|
|
1579
1604
|
readonly weight: 2;
|
|
1580
1605
|
readonly max: 1;
|
|
1581
1606
|
};
|
|
1582
1607
|
readonly contentBeyondLandmarks: {
|
|
1583
1608
|
readonly summary: 'content beyond landmarks';
|
|
1584
|
-
readonly why: 'User cannot get help on how some of the
|
|
1609
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1585
1610
|
readonly wcag: '1.3.6';
|
|
1586
1611
|
readonly weight: 1;
|
|
1587
1612
|
};
|
|
1588
1613
|
readonly footerNotTop: {
|
|
1589
1614
|
readonly summary: 'footer child of landmark';
|
|
1590
|
-
readonly why: 'User cannot get help on how some of the
|
|
1615
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1591
1616
|
readonly wcag: '1.3.6';
|
|
1592
1617
|
readonly weight: 1;
|
|
1593
1618
|
};
|
|
1594
1619
|
readonly asideNotTop: {
|
|
1595
1620
|
readonly summary: 'aside child of landmark';
|
|
1596
|
-
readonly why: 'User cannot get help on how some of the
|
|
1621
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1597
1622
|
readonly wcag: '1.3.6';
|
|
1598
1623
|
readonly weight: 2;
|
|
1599
1624
|
};
|
|
1600
1625
|
readonly mainNotTop: {
|
|
1601
1626
|
readonly summary: 'main child of landmark';
|
|
1602
|
-
readonly why: 'User cannot get help on how some of the
|
|
1627
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1603
1628
|
readonly wcag: '1.3.6';
|
|
1604
1629
|
readonly weight: 2;
|
|
1605
1630
|
};
|
|
1606
1631
|
readonly mainConfusion: {
|
|
1607
1632
|
readonly summary: 'mains not distinctly named';
|
|
1608
|
-
readonly why: 'User cannot get help on how some of the
|
|
1633
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1609
1634
|
readonly wcag: '1.3.6';
|
|
1610
1635
|
readonly weight: 3;
|
|
1611
1636
|
};
|
|
1612
1637
|
readonly mainNone: {
|
|
1613
1638
|
readonly summary: 'main missing';
|
|
1614
|
-
readonly why: 'User cannot get help on how some of the
|
|
1639
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1615
1640
|
readonly wcag: '1.3.6';
|
|
1616
1641
|
readonly weight: 2;
|
|
1617
1642
|
readonly max: 1;
|
|
1618
1643
|
};
|
|
1619
1644
|
readonly mainNot1: {
|
|
1620
1645
|
readonly summary: 'multiple mains';
|
|
1621
|
-
readonly why: 'User cannot get help on how some of the
|
|
1646
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1622
1647
|
readonly wcag: '1.3.6';
|
|
1623
1648
|
readonly weight: 2;
|
|
1624
1649
|
readonly max: 1;
|
|
1625
1650
|
};
|
|
1626
1651
|
readonly bannerNot1: {
|
|
1627
1652
|
readonly summary: 'multiple banners';
|
|
1628
|
-
readonly why: 'User cannot get help on how some of the
|
|
1653
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1629
1654
|
readonly wcag: '1.3.6';
|
|
1630
1655
|
readonly weight: 2;
|
|
1631
1656
|
readonly max: 1;
|
|
1632
1657
|
};
|
|
1633
1658
|
readonly bannerNotTop: {
|
|
1634
1659
|
readonly summary: 'banner child of landmark';
|
|
1635
|
-
readonly why: 'User cannot get help on how some of the
|
|
1660
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1636
1661
|
readonly wcag: '1.3.6';
|
|
1637
1662
|
readonly weight: 2;
|
|
1638
1663
|
};
|
|
1639
1664
|
readonly footerConfusion: {
|
|
1640
1665
|
readonly summary: 'contentinfos not distinctly named';
|
|
1641
|
-
readonly why: 'User cannot get help on how some of the
|
|
1666
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1642
1667
|
readonly wcag: '1.3.6';
|
|
1643
1668
|
readonly weight: 3;
|
|
1644
1669
|
};
|
|
1645
1670
|
readonly footerNot1: {
|
|
1646
1671
|
readonly summary: 'multiple contentinfos';
|
|
1647
|
-
readonly why: 'User cannot get help on how some of the
|
|
1672
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1648
1673
|
readonly wcag: '1.3.6';
|
|
1649
1674
|
readonly weight: 2;
|
|
1650
1675
|
readonly max: 1;
|
|
1651
1676
|
};
|
|
1652
1677
|
readonly landmarkConfusion: {
|
|
1653
1678
|
readonly summary: 'landmarks not distinctly named';
|
|
1654
|
-
readonly why: 'User cannot get help on how some of the
|
|
1679
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1655
1680
|
readonly wcag: '1.3.6';
|
|
1656
1681
|
readonly weight: 3;
|
|
1657
1682
|
};
|
|
1658
1683
|
readonly documentConfusion: {
|
|
1659
|
-
readonly summary: '
|
|
1660
|
-
readonly why: 'User cannot get help on how some of the
|
|
1684
|
+
readonly summary: 'page elements not distinctly named';
|
|
1685
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1661
1686
|
readonly wcag: '1.3.6';
|
|
1662
1687
|
readonly weight: 3;
|
|
1663
1688
|
};
|
|
@@ -1669,61 +1694,61 @@ declare const issuesData: {
|
|
|
1669
1694
|
};
|
|
1670
1695
|
readonly formConfusion: {
|
|
1671
1696
|
readonly summary: 'forms not distinctly named';
|
|
1672
|
-
readonly why: 'User cannot get help on how some of the
|
|
1697
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1673
1698
|
readonly wcag: '1.3.6';
|
|
1674
1699
|
readonly weight: 3;
|
|
1675
1700
|
};
|
|
1676
1701
|
readonly applicationNoText: {
|
|
1677
1702
|
readonly summary: 'application not named';
|
|
1678
|
-
readonly why: 'User cannot get help on how some of the
|
|
1703
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1679
1704
|
readonly wcag: '1.3.6';
|
|
1680
1705
|
readonly weight: 4;
|
|
1681
1706
|
};
|
|
1682
1707
|
readonly applicationConfusion: {
|
|
1683
1708
|
readonly summary: 'applications not distinctly named';
|
|
1684
|
-
readonly why: 'User cannot get help on how some of the
|
|
1709
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1685
1710
|
readonly wcag: '1.3.6';
|
|
1686
1711
|
readonly weight: 3;
|
|
1687
1712
|
};
|
|
1688
1713
|
readonly asideConfusion: {
|
|
1689
1714
|
readonly summary: 'asides not distinctly named';
|
|
1690
|
-
readonly why: 'User cannot get help on how some of the
|
|
1715
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1691
1716
|
readonly wcag: '1.3.6';
|
|
1692
1717
|
readonly weight: 3;
|
|
1693
1718
|
};
|
|
1694
1719
|
readonly bannerConfusion: {
|
|
1695
1720
|
readonly summary: 'banners not distinctly named';
|
|
1696
|
-
readonly why: 'User cannot get help on how some of the
|
|
1721
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1697
1722
|
readonly wcag: '1.3.6';
|
|
1698
1723
|
readonly weight: 3;
|
|
1699
1724
|
};
|
|
1700
1725
|
readonly navConfusion: {
|
|
1701
1726
|
readonly summary: 'navigations not distinctly named';
|
|
1702
|
-
readonly why: 'User cannot get help on how some of the
|
|
1727
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1703
1728
|
readonly wcag: '1.3.6';
|
|
1704
1729
|
readonly weight: 3;
|
|
1705
1730
|
};
|
|
1706
1731
|
readonly landmarkInNav: {
|
|
1707
1732
|
readonly summary: 'invalid landmark child of navigation role';
|
|
1708
|
-
readonly why: 'User cannot get help on how some of the
|
|
1733
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1709
1734
|
readonly wcag: '1.3.6';
|
|
1710
1735
|
readonly weight: 4;
|
|
1711
1736
|
};
|
|
1712
1737
|
readonly regionConfusion: {
|
|
1713
1738
|
readonly summary: 'regions not distinctly named';
|
|
1714
|
-
readonly why: 'User cannot get help on how some of the
|
|
1739
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1715
1740
|
readonly wcag: '1.3.6';
|
|
1716
1741
|
readonly weight: 3;
|
|
1717
1742
|
};
|
|
1718
1743
|
readonly searchConfusion: {
|
|
1719
1744
|
readonly summary: 'searches not distinctly named';
|
|
1720
|
-
readonly why: 'User cannot get help on how some of the
|
|
1745
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1721
1746
|
readonly wcag: '1.3.6';
|
|
1722
1747
|
readonly weight: 3;
|
|
1723
1748
|
};
|
|
1724
1749
|
readonly complementaryNoText: {
|
|
1725
1750
|
readonly summary: 'complementary not named';
|
|
1726
|
-
readonly why: 'User cannot get help on how some of the
|
|
1751
|
+
readonly why: 'User cannot get help on how some of the page is organized';
|
|
1727
1752
|
readonly wcag: '1.3.6';
|
|
1728
1753
|
readonly weight: 1;
|
|
1729
1754
|
};
|
|
@@ -1783,14 +1808,14 @@ declare const issuesData: {
|
|
|
1783
1808
|
};
|
|
1784
1809
|
readonly contentHidden: {
|
|
1785
1810
|
readonly summary: 'page hidden';
|
|
1786
|
-
readonly why: 'User cannot get the
|
|
1811
|
+
readonly why: 'User cannot get the page content';
|
|
1787
1812
|
readonly wcag: '2.4.7';
|
|
1788
1813
|
readonly weight: 4;
|
|
1789
1814
|
readonly max: 1;
|
|
1790
1815
|
};
|
|
1791
1816
|
readonly hideFailureRisk: {
|
|
1792
1817
|
readonly summary: 'false aria-hidden value risky';
|
|
1793
|
-
readonly why: 'User may be misled by erroneously hidden or revealed
|
|
1818
|
+
readonly why: 'User may be misled by erroneously hidden or revealed page content';
|
|
1794
1819
|
readonly wcag: '2.4.6';
|
|
1795
1820
|
readonly weight: 1;
|
|
1796
1821
|
};
|
|
@@ -1808,19 +1833,19 @@ declare const issuesData: {
|
|
|
1808
1833
|
};
|
|
1809
1834
|
readonly hoverIndication: {
|
|
1810
1835
|
readonly summary: 'hover indication poor';
|
|
1811
|
-
readonly why: 'User cannot explore the
|
|
1836
|
+
readonly why: 'User cannot explore the page reliably with a mouse';
|
|
1812
1837
|
readonly wcag: '3.3.2';
|
|
1813
1838
|
readonly weight: 3;
|
|
1814
1839
|
};
|
|
1815
1840
|
readonly hoverSurprise: {
|
|
1816
1841
|
readonly summary: 'hovering changes content';
|
|
1817
|
-
readonly why: 'User cannot explore the
|
|
1842
|
+
readonly why: 'User cannot explore the page reliably with a mouse';
|
|
1818
1843
|
readonly wcag: '3.2.5';
|
|
1819
1844
|
readonly weight: 1;
|
|
1820
1845
|
};
|
|
1821
1846
|
readonly formSurpriseRisk: {
|
|
1822
1847
|
readonly summary: 'form interaction changes content?';
|
|
1823
|
-
readonly why: 'User experiences unexpected
|
|
1848
|
+
readonly why: 'User experiences unexpected page change when using a form';
|
|
1824
1849
|
readonly wcag: '3.2.5';
|
|
1825
1850
|
readonly weight: 1;
|
|
1826
1851
|
};
|
|
@@ -2067,14 +2092,14 @@ declare const issuesData: {
|
|
|
2067
2092
|
};
|
|
2068
2093
|
readonly skipRepeatedContent: {
|
|
2069
2094
|
readonly summary: 'skip method missing or invalid';
|
|
2070
|
-
readonly why: 'Keyboard-only user cannot easily reach the specific content of the
|
|
2095
|
+
readonly why: 'Keyboard-only user cannot easily reach the specific content of the page';
|
|
2071
2096
|
readonly wcag: '2.4.1';
|
|
2072
2097
|
readonly weight: 3;
|
|
2073
2098
|
readonly max: 2;
|
|
2074
2099
|
};
|
|
2075
2100
|
readonly repeatedContentRisk: {
|
|
2076
2101
|
readonly summary: 'skip method missing or invalid?';
|
|
2077
|
-
readonly why: 'Keyboard-only user may be unable easily to reach the specific content of the
|
|
2102
|
+
readonly why: 'Keyboard-only user may be unable easily to reach the specific content of the page';
|
|
2078
2103
|
readonly wcag: '2.4.1';
|
|
2079
2104
|
readonly weight: 1;
|
|
2080
2105
|
readonly max: 2;
|
|
@@ -2166,25 +2191,25 @@ declare const issuesData: {
|
|
|
2166
2191
|
};
|
|
2167
2192
|
readonly characterBad: {
|
|
2168
2193
|
readonly summary: 'invalid character';
|
|
2169
|
-
readonly why: 'Invalid character makes the
|
|
2194
|
+
readonly why: 'Invalid character makes the page behave incorrectly';
|
|
2170
2195
|
readonly wcag: '4.1';
|
|
2171
2196
|
readonly weight: 3;
|
|
2172
2197
|
};
|
|
2173
2198
|
readonly entityBad: {
|
|
2174
2199
|
readonly summary: 'named character reference invalid';
|
|
2175
|
-
readonly why: 'User may be unable to read all the
|
|
2200
|
+
readonly why: 'User may be unable to read all the page text';
|
|
2176
2201
|
readonly wcag: '4.1';
|
|
2177
2202
|
readonly weight: 4;
|
|
2178
2203
|
};
|
|
2179
2204
|
readonly textContentBad: {
|
|
2180
2205
|
readonly summary: 'element text content invalid';
|
|
2181
|
-
readonly why: 'User may be unable to read all the
|
|
2206
|
+
readonly why: 'User may be unable to read all the page text';
|
|
2182
2207
|
readonly wcag: '4.1';
|
|
2183
2208
|
readonly weight: 3;
|
|
2184
2209
|
};
|
|
2185
2210
|
readonly parseError: {
|
|
2186
2211
|
readonly summary: 'code invalid';
|
|
2187
|
-
readonly why: 'Invalid code in the
|
|
2212
|
+
readonly why: 'Invalid code in the page may prevent a helper from working';
|
|
2188
2213
|
readonly wcag: '4.1';
|
|
2189
2214
|
readonly weight: 3;
|
|
2190
2215
|
};
|
|
@@ -2210,7 +2235,7 @@ declare const issuesData: {
|
|
|
2210
2235
|
};
|
|
2211
2236
|
readonly captcha2: {
|
|
2212
2237
|
readonly summary: 'captcha2';
|
|
2213
|
-
readonly why: 'User is prevented from consuming the
|
|
2238
|
+
readonly why: 'User is prevented from consuming the page';
|
|
2214
2239
|
readonly wcag: '1.1.1';
|
|
2215
2240
|
readonly weight: 1;
|
|
2216
2241
|
readonly max: 1;
|
|
@@ -2237,12 +2262,20 @@ declare const issuesData: {
|
|
|
2237
2262
|
};
|
|
2238
2263
|
declare const issues: Readonly<Record<string, Issue>>;
|
|
2239
2264
|
declare const rules: Readonly<Record<string, EngineRules>>;
|
|
2240
|
-
declare const makeIssueRules: (ruleTable: Record<string, EngineRules>, issueTable?: Record<string, Issue>) => Record<string, Record<string,
|
|
2265
|
+
declare const makeIssueRules: (ruleTable: Record<string, EngineRules>, issueTable?: Record<string, Issue>) => Record<string, Record<string, ruleIDsByType>>;
|
|
2241
2266
|
declare const getEditableData: () => {
|
|
2242
2267
|
issues: Readonly<Record<string, Issue>>;
|
|
2243
2268
|
rules: Readonly<Record<string, EngineRules>>;
|
|
2244
|
-
issueRules: Record<string, Record<string,
|
|
2269
|
+
issueRules: Record<string, Record<string, ruleIDsByType>>;
|
|
2245
2270
|
};
|
|
2246
|
-
declare const
|
|
2271
|
+
declare const makeIssueStats: (issueRuleTable?: Record<string, Record<string, ruleIDsByType>>) => Record<string, IssueEngineRuleCounts>;
|
|
2272
|
+
declare const getSingleEngineIssues: (stats?: Record<string, IssueEngineRuleCounts>) => Array<{
|
|
2273
|
+
issueID: string;
|
|
2274
|
+
engineID: string;
|
|
2275
|
+
ruleCount: number;
|
|
2276
|
+
}>;
|
|
2277
|
+
declare const getEngineRuleCounts: (ruleTable?: Record<string, EngineRules>) => Record<string, number>;
|
|
2278
|
+
declare const issueRules: Record<string, Record<string, ruleIDsByType>>;
|
|
2279
|
+
declare const issueStats: Record<string, IssueEngineRuleCounts>;
|
|
2247
2280
|
//#endregion
|
|
2248
|
-
export {
|
|
2281
|
+
export { IssueEngineRuleCounts, getEditableData, getEngineRuleCounts, getSingleEngineIssues, issueRules, issueStats, issues, makeIssueRules, makeIssueStats, ruleIDsByType, rules };
|