@uuv/a11y 0.0.1
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/LICENSE +24 -0
- package/README.md +199 -0
- package/bundle/uuv-a11y.bundle.js +3 -0
- package/bundle/uuv-a11y.bundle.js.LICENSE.txt +28 -0
- package/dist/README.md +199 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/dist/lib/engine/engine.d.ts +12 -0
- package/dist/lib/engine/engine.js +123 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.js +19 -0
- package/dist/lib/model/checker.d.ts +14 -0
- package/dist/lib/model/checker.js +35 -0
- package/dist/lib/model/index.d.ts +4 -0
- package/dist/lib/model/index.js +20 -0
- package/dist/lib/model/reference.d.ts +55 -0
- package/dist/lib/model/reference.js +66 -0
- package/dist/lib/model/result.d.ts +57 -0
- package/dist/lib/model/result.js +144 -0
- package/dist/lib/model/rule.d.ts +99 -0
- package/dist/lib/model/rule.js +53 -0
- package/dist/lib/query/00-query.d.ts +4 -0
- package/dist/lib/query/00-query.js +2 -0
- package/dist/lib/query/accessible-name.query.d.ts +8 -0
- package/dist/lib/query/accessible-name.query.js +34 -0
- package/dist/lib/query/by-role.query.d.ts +8 -0
- package/dist/lib/query/by-role.query.js +27 -0
- package/dist/lib/query/by-tag.query.d.ts +7 -0
- package/dist/lib/query/by-tag.query.js +20 -0
- package/dist/lib/query/doctype.query.d.ts +5 -0
- package/dist/lib/query/doctype.query.js +15 -0
- package/dist/lib/query/form.query.d.ts +8 -0
- package/dist/lib/query/form.query.js +87 -0
- package/dist/lib/query/index.d.ts +6 -0
- package/dist/lib/query/index.js +22 -0
- package/dist/lib/reference/alix/alix-checker.d.ts +0 -0
- package/dist/lib/reference/alix/alix-checker.js +82 -0
- package/dist/lib/reference/alix/alix-rules.d.ts +0 -0
- package/dist/lib/reference/alix/alix-rules.js +1028 -0
- package/dist/lib/reference/alix/index.d.ts +0 -0
- package/dist/lib/reference/alix/index.js +3 -0
- package/dist/lib/reference/index.d.ts +1 -0
- package/dist/lib/reference/index.js +18 -0
- package/dist/lib/reference/rgaa/common.d.ts +2 -0
- package/dist/lib/reference/rgaa/common.js +5 -0
- package/dist/lib/reference/rgaa/coverage/coverage-helper.d.ts +2 -0
- package/dist/lib/reference/rgaa/coverage/coverage-helper.js +100 -0
- package/dist/lib/reference/rgaa/coverage/coverage-statement.json +90 -0
- package/dist/lib/reference/rgaa/index.d.ts +2 -0
- package/dist/lib/reference/rgaa/index.js +18 -0
- package/dist/lib/reference/rgaa/rgaa-checker.d.ts +8 -0
- package/dist/lib/reference/rgaa/rgaa-checker.js +31 -0
- package/dist/lib/reference/rgaa/rgaa-reference.d.ts +2 -0
- package/dist/lib/reference/rgaa/rgaa-reference.js +44 -0
- package/dist/lib/reference/rgaa/rgaa_4.1.criteres.json +4144 -0
- package/dist/lib/reference/rgaa/rules/1-image.d.ts +14 -0
- package/dist/lib/reference/rgaa/rules/1-image.js +644 -0
- package/dist/lib/reference/rgaa/rules/10-display.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/10-display.js +3 -0
- package/dist/lib/reference/rgaa/rules/11-form.d.ts +14 -0
- package/dist/lib/reference/rgaa/rules/11-form.js +16 -0
- package/dist/lib/reference/rgaa/rules/12-navigation.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/12-navigation.js +3 -0
- package/dist/lib/reference/rgaa/rules/13-visit.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/13-visit.js +3 -0
- package/dist/lib/reference/rgaa/rules/2-frame.d.ts +14 -0
- package/dist/lib/reference/rgaa/rules/2-frame.js +34 -0
- package/dist/lib/reference/rgaa/rules/3-color.d.ts +14 -0
- package/dist/lib/reference/rgaa/rules/3-color.js +50 -0
- package/dist/lib/reference/rgaa/rules/4-multimedia.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/4-multimedia.js +3 -0
- package/dist/lib/reference/rgaa/rules/5-table.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/5-table.js +3 -0
- package/dist/lib/reference/rgaa/rules/6-link.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/6-link.js +3 -0
- package/dist/lib/reference/rgaa/rules/7-script.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/7-script.js +3 -0
- package/dist/lib/reference/rgaa/rules/8-required-element.d.ts +14 -0
- package/dist/lib/reference/rgaa/rules/8-required-element.js +78 -0
- package/dist/lib/reference/rgaa/rules/9-structure.d.ts +2 -0
- package/dist/lib/reference/rgaa/rules/9-structure.js +3 -0
- package/dist/lib/reference/rgaa/selector-helper.d.ts +17 -0
- package/dist/lib/reference/rgaa/selector-helper.js +33 -0
- package/dist/package.json +63 -0
- package/package.json +63 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AutoCheckA11yRule } from "../../../model";
|
|
2
|
+
declare const _default: (AutoCheckA11yRule & {
|
|
3
|
+
attributes?: string[] | undefined;
|
|
4
|
+
reference: string;
|
|
5
|
+
criterion: string;
|
|
6
|
+
wcag: string;
|
|
7
|
+
id: string;
|
|
8
|
+
elementType: string;
|
|
9
|
+
query: import("../../../query").Query;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
help?: string | string[] | undefined;
|
|
12
|
+
shouldNotExist?: boolean | undefined;
|
|
13
|
+
})[];
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const model_1 = require("../../../model");
|
|
4
|
+
const query_1 = require("../../../query");
|
|
5
|
+
const selector_helper_1 = require("../selector-helper");
|
|
6
|
+
exports.default = [
|
|
7
|
+
model_1.AutoCheckA11yRule.from({
|
|
8
|
+
reference: "RGAA",
|
|
9
|
+
criterion: "1.1",
|
|
10
|
+
wcag: "1.1.1 A",
|
|
11
|
+
id: "1.1.1",
|
|
12
|
+
elementType: "image",
|
|
13
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
14
|
+
selector_helper_1.informativeContent.image.SELECTOR
|
|
15
|
+
]), true),
|
|
16
|
+
description: "image has no text information",
|
|
17
|
+
help: "set text information to image"
|
|
18
|
+
}),
|
|
19
|
+
model_1.AutoCheckA11yRule.from({
|
|
20
|
+
reference: "RGAA",
|
|
21
|
+
criterion: "1.1",
|
|
22
|
+
wcag: "1.1.1 A",
|
|
23
|
+
id: "1.1.1",
|
|
24
|
+
elementType: "image",
|
|
25
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByRoleQuery("img", []), true),
|
|
26
|
+
description: "image has no text information",
|
|
27
|
+
help: "set text information to image"
|
|
28
|
+
}),
|
|
29
|
+
model_1.AutoCheckA11yRule.from({
|
|
30
|
+
reference: "RGAA",
|
|
31
|
+
criterion: "1.1",
|
|
32
|
+
wcag: "1.1.1 A",
|
|
33
|
+
id: "1.1.2",
|
|
34
|
+
elementType: "area",
|
|
35
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
36
|
+
selector_helper_1.informativeContent.area.SELECTOR
|
|
37
|
+
]), true),
|
|
38
|
+
description: "area has no alternative text",
|
|
39
|
+
help: "set alternative text to area"
|
|
40
|
+
}),
|
|
41
|
+
model_1.AutoCheckA11yRule.from({
|
|
42
|
+
reference: "RGAA",
|
|
43
|
+
criterion: "1.1",
|
|
44
|
+
wcag: "1.1.1 A",
|
|
45
|
+
id: "1.1.3",
|
|
46
|
+
elementType: "input",
|
|
47
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
48
|
+
selector_helper_1.informativeContent.input.SELECTOR
|
|
49
|
+
]), true),
|
|
50
|
+
description: "input with image type has no alternative text",
|
|
51
|
+
help: "set alternative text to input with image type"
|
|
52
|
+
}),
|
|
53
|
+
model_1.AutoCheckA11yRule.from({
|
|
54
|
+
reference: "RGAA",
|
|
55
|
+
criterion: "1.1",
|
|
56
|
+
wcag: "1.1.1 A",
|
|
57
|
+
id: "1.1.4",
|
|
58
|
+
elementType: "image",
|
|
59
|
+
query: new query_1.ByTagQuery([
|
|
60
|
+
"a[href]img[ismap]"
|
|
61
|
+
]),
|
|
62
|
+
description: "The clickable zone does not have an identical mechanism, which can be used regardless of the pointing device used and provides access to the same destination",
|
|
63
|
+
help: "provide a mechanism identical to the clickable zone, which can be used regardless of the pointing device used and provides access to the same destination"
|
|
64
|
+
}),
|
|
65
|
+
model_1.AutoCheckA11yRule.from({
|
|
66
|
+
reference: "RGAA",
|
|
67
|
+
criterion: "1.1",
|
|
68
|
+
wcag: "1.1.1 A",
|
|
69
|
+
id: "1.1.5",
|
|
70
|
+
elementType: "svg",
|
|
71
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
72
|
+
selector_helper_1.informativeContent.svg.SELECTOR
|
|
73
|
+
]), true),
|
|
74
|
+
description: "svg has no alternative text",
|
|
75
|
+
help: "set alternative text to svg"
|
|
76
|
+
}),
|
|
77
|
+
model_1.AutoCheckA11yRule.from({
|
|
78
|
+
reference: "RGAA",
|
|
79
|
+
criterion: "1.1",
|
|
80
|
+
wcag: "1.1.1 A",
|
|
81
|
+
id: "1.1.5",
|
|
82
|
+
elementType: "svg",
|
|
83
|
+
query: new query_1.ByTagQuery([
|
|
84
|
+
"svg:not([role=img])"
|
|
85
|
+
]),
|
|
86
|
+
description: "svg has no image role",
|
|
87
|
+
help: "set image role to svg"
|
|
88
|
+
}),
|
|
89
|
+
model_1.AutoCheckA11yRule.from({
|
|
90
|
+
reference: "RGAA",
|
|
91
|
+
criterion: "1.1",
|
|
92
|
+
wcag: "1.1.1 A",
|
|
93
|
+
id: "1.1.6",
|
|
94
|
+
elementType: "object",
|
|
95
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
96
|
+
selector_helper_1.informativeContent.object.SELECTOR
|
|
97
|
+
]), true),
|
|
98
|
+
description: "object has no image role or no alternative text",
|
|
99
|
+
help: "set image role to object and alternative text"
|
|
100
|
+
}),
|
|
101
|
+
model_1.AutoCheckA11yRule.from({
|
|
102
|
+
reference: "RGAA",
|
|
103
|
+
criterion: "1.1",
|
|
104
|
+
wcag: "1.1.1 A",
|
|
105
|
+
id: "1.1.7",
|
|
106
|
+
elementType: "embed",
|
|
107
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
108
|
+
selector_helper_1.informativeContent.embed.SELECTOR
|
|
109
|
+
]), true),
|
|
110
|
+
description: "embed has no image role or no alternative text",
|
|
111
|
+
help: "set image role to embed and alternative text"
|
|
112
|
+
}),
|
|
113
|
+
model_1.AutoCheckA11yRule.from({
|
|
114
|
+
reference: "RGAA",
|
|
115
|
+
criterion: "1.1",
|
|
116
|
+
wcag: "1.1.1 A",
|
|
117
|
+
id: "1.1.8",
|
|
118
|
+
elementType: "canvas",
|
|
119
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
120
|
+
"canvas[role=img]"
|
|
121
|
+
]), true),
|
|
122
|
+
description: "canvas has no image role and no alternative text",
|
|
123
|
+
help: "set image role to canvas and alternative text"
|
|
124
|
+
}),
|
|
125
|
+
model_1.AutoCheckA11yRule.from({
|
|
126
|
+
reference: "RGAA",
|
|
127
|
+
criterion: "1.2",
|
|
128
|
+
wcag: "1.1.1 A, 4.1.2 A",
|
|
129
|
+
id: "1.2.1",
|
|
130
|
+
elementType: "image",
|
|
131
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
132
|
+
"img[alt='']:not([href])",
|
|
133
|
+
"img[aria-hidden=true]:not([href]",
|
|
134
|
+
"img[role=presentation]:not([href])"
|
|
135
|
+
]), false),
|
|
136
|
+
description: "decorative image has alternative text",
|
|
137
|
+
help: "remove alternative text to decorative image"
|
|
138
|
+
}),
|
|
139
|
+
model_1.AutoCheckA11yRule.from({
|
|
140
|
+
reference: "RGAA",
|
|
141
|
+
criterion: "1.2",
|
|
142
|
+
wcag: "1.1.1 A, 4.1.2 A",
|
|
143
|
+
id: "1.2.2",
|
|
144
|
+
elementType: "area",
|
|
145
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
146
|
+
"area[alt='']:not([href])",
|
|
147
|
+
"area[aria-hidden=true]:not([href]",
|
|
148
|
+
"area[role=presentation]:not([href])"
|
|
149
|
+
]), false),
|
|
150
|
+
description: "decorative area has alternative text",
|
|
151
|
+
help: "remove alternative text to decorative area"
|
|
152
|
+
}),
|
|
153
|
+
model_1.AutoCheckA11yRule.from({
|
|
154
|
+
reference: "RGAA",
|
|
155
|
+
criterion: "1.2",
|
|
156
|
+
wcag: "1.1.1 A, 4.1.2 A",
|
|
157
|
+
id: "1.2.3",
|
|
158
|
+
elementType: "object",
|
|
159
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
160
|
+
"object[aria-hidden=true]"
|
|
161
|
+
]), false),
|
|
162
|
+
description: "decorative object has alternative text",
|
|
163
|
+
help: "remove alternative text to decorative object"
|
|
164
|
+
}),
|
|
165
|
+
model_1.AutoCheckA11yRule.from({
|
|
166
|
+
reference: "RGAA",
|
|
167
|
+
criterion: "1.2",
|
|
168
|
+
wcag: "1.1.1 A, 4.1.2 A",
|
|
169
|
+
id: "1.2.4",
|
|
170
|
+
elementType: "svg",
|
|
171
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
172
|
+
"svg[aria-hidden=true][title]:not([title=''])",
|
|
173
|
+
"svg[aria-hidden=true][desc]:not([desc=''])"
|
|
174
|
+
]), false),
|
|
175
|
+
description: "decorative svg has alternative text",
|
|
176
|
+
help: "remove alternative text to decorative svg"
|
|
177
|
+
}),
|
|
178
|
+
model_1.AutoCheckA11yRule.from({
|
|
179
|
+
reference: "RGAA",
|
|
180
|
+
criterion: "1.2",
|
|
181
|
+
wcag: "1.1.1 A, 4.1.2 A",
|
|
182
|
+
id: "1.2.5",
|
|
183
|
+
elementType: "canvas",
|
|
184
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
185
|
+
"canvas[aria-hidden=true]"
|
|
186
|
+
]), false),
|
|
187
|
+
description: "decorative canvas has alternative text",
|
|
188
|
+
help: "remove alternative text to decorative canvas"
|
|
189
|
+
}),
|
|
190
|
+
model_1.AutoCheckA11yRule.from({
|
|
191
|
+
reference: "RGAA",
|
|
192
|
+
criterion: "1.2",
|
|
193
|
+
wcag: "1.1.1 A, 4.1.2 A",
|
|
194
|
+
id: "1.2.6",
|
|
195
|
+
elementType: "embed",
|
|
196
|
+
query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
|
|
197
|
+
"embed[aria-hidden=true]"
|
|
198
|
+
]), false),
|
|
199
|
+
description: "decorative embed has alternative text",
|
|
200
|
+
help: "remove alternative text to decorative embed"
|
|
201
|
+
}),
|
|
202
|
+
model_1.ManualCheckA11yRule.from({
|
|
203
|
+
reference: "RGAA",
|
|
204
|
+
criterion: "1.3",
|
|
205
|
+
wcag: "4.1.2 A",
|
|
206
|
+
id: "1.3.1",
|
|
207
|
+
elementType: "image",
|
|
208
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.image.buildSelectorWithAttributes()),
|
|
209
|
+
attributes: selector_helper_1.informativeContent.image.ATTRIBUTES,
|
|
210
|
+
description: "if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
211
|
+
help: "adapt these attributes to be relevant"
|
|
212
|
+
}),
|
|
213
|
+
model_1.ManualCheckA11yRule.from({
|
|
214
|
+
reference: "RGAA",
|
|
215
|
+
criterion: "1.3",
|
|
216
|
+
wcag: "4.1.2 A",
|
|
217
|
+
id: "1.3.1",
|
|
218
|
+
elementType: "image",
|
|
219
|
+
query: new query_1.ByRoleQuery("img", selector_helper_1.informativeContent.image.ATTRIBUTES),
|
|
220
|
+
attributes: selector_helper_1.informativeContent.image.ATTRIBUTES,
|
|
221
|
+
description: "if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
222
|
+
help: "adapt these attributes to be relevant"
|
|
223
|
+
}),
|
|
224
|
+
model_1.ManualCheckA11yRule.from({
|
|
225
|
+
reference: "RGAA",
|
|
226
|
+
criterion: "1.3",
|
|
227
|
+
wcag: "4.1.2 A",
|
|
228
|
+
id: "1.3.2",
|
|
229
|
+
elementType: "area",
|
|
230
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.area.buildSelectorWithAttributes()),
|
|
231
|
+
attributes: selector_helper_1.informativeContent.area.ATTRIBUTES,
|
|
232
|
+
description: "if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
233
|
+
help: "adapt these attributes to be relevant"
|
|
234
|
+
}),
|
|
235
|
+
model_1.ManualCheckA11yRule.from({
|
|
236
|
+
reference: "RGAA",
|
|
237
|
+
criterion: "1.3",
|
|
238
|
+
wcag: "4.1.2 A",
|
|
239
|
+
id: "1.3.3",
|
|
240
|
+
elementType: "input",
|
|
241
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.input.buildSelectorWithAttributes()),
|
|
242
|
+
attributes: selector_helper_1.informativeContent.input.ATTRIBUTES,
|
|
243
|
+
description: "if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
244
|
+
help: "adapt these attributes to be relevant"
|
|
245
|
+
}),
|
|
246
|
+
model_1.ManualCheckA11yRule.from({
|
|
247
|
+
reference: "RGAA",
|
|
248
|
+
criterion: "1.3",
|
|
249
|
+
wcag: "4.1.2 A",
|
|
250
|
+
id: "1.3.4",
|
|
251
|
+
elementType: "object",
|
|
252
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.object.buildSelectorWithAttributes()),
|
|
253
|
+
attributes: selector_helper_1.informativeContent.object.ATTRIBUTES,
|
|
254
|
+
description: "if present, attributes title, aria-label, aria-labelledby must be relevant",
|
|
255
|
+
help: "adapt these attributes to be relevant"
|
|
256
|
+
}),
|
|
257
|
+
model_1.ManualCheckA11yRule.from({
|
|
258
|
+
reference: "RGAA",
|
|
259
|
+
criterion: "1.3",
|
|
260
|
+
wcag: "4.1.2 A",
|
|
261
|
+
id: "1.3.5",
|
|
262
|
+
elementType: "embed",
|
|
263
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.embed.buildSelectorWithAttributes()),
|
|
264
|
+
attributes: selector_helper_1.informativeContent.embed.ATTRIBUTES,
|
|
265
|
+
description: "if present, attributes title, aria-label, aria-labelledby must be relevant",
|
|
266
|
+
help: "adapt these attributes to be relevant"
|
|
267
|
+
}),
|
|
268
|
+
model_1.ManualCheckA11yRule.from({
|
|
269
|
+
reference: "RGAA",
|
|
270
|
+
criterion: "1.3",
|
|
271
|
+
wcag: "4.1.2 A",
|
|
272
|
+
id: "1.3.6",
|
|
273
|
+
elementType: "svg",
|
|
274
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.svg.buildSelectorWithAttributes()),
|
|
275
|
+
attributes: selector_helper_1.informativeContent.svg.ATTRIBUTES,
|
|
276
|
+
description: "if present, attributes title, aria-label, aria-labelledby must be relevant",
|
|
277
|
+
help: "adapt these attributes to be relevant"
|
|
278
|
+
}),
|
|
279
|
+
model_1.ManualCheckA11yRule.from({
|
|
280
|
+
reference: "RGAA",
|
|
281
|
+
criterion: "1.3",
|
|
282
|
+
wcag: "4.1.2 A",
|
|
283
|
+
id: "1.3.7",
|
|
284
|
+
elementType: "canvas",
|
|
285
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.canvas.buildSelectorWithAttributes()),
|
|
286
|
+
attributes: selector_helper_1.informativeContent.canvas.ATTRIBUTES,
|
|
287
|
+
description: "if present, attributes title, aria-label, aria-labelledby must be relevant",
|
|
288
|
+
help: "adapt these attributes to be relevant"
|
|
289
|
+
}),
|
|
290
|
+
model_1.ManualCheckA11yRule.from({
|
|
291
|
+
reference: "RGAA",
|
|
292
|
+
criterion: "1.3",
|
|
293
|
+
wcag: "4.1.2 A",
|
|
294
|
+
id: "1.3.9",
|
|
295
|
+
elementType: "polymorph",
|
|
296
|
+
query: new query_1.ByTagQuery([
|
|
297
|
+
...selector_helper_1.informativeContent.image.buildSelectorWithAttributes(),
|
|
298
|
+
...selector_helper_1.informativeContent.area.buildSelectorWithAttributes(),
|
|
299
|
+
...selector_helper_1.informativeContent.input.buildSelectorWithAttributes()
|
|
300
|
+
]),
|
|
301
|
+
attributes: [
|
|
302
|
+
"title",
|
|
303
|
+
"aria-labelledby",
|
|
304
|
+
"aria-label",
|
|
305
|
+
"alt"
|
|
306
|
+
],
|
|
307
|
+
description: "if present, attributes alt, title, aria-label, aria-labelledby must contain short and concise information",
|
|
308
|
+
help: "adapt these attributes to be short and concise"
|
|
309
|
+
}),
|
|
310
|
+
model_1.ManualCheckA11yRule.from({
|
|
311
|
+
reference: "RGAA",
|
|
312
|
+
criterion: "1.3",
|
|
313
|
+
wcag: "4.1.2 A",
|
|
314
|
+
id: "1.3.9",
|
|
315
|
+
elementType: "polymorph",
|
|
316
|
+
query: new query_1.ByTagQuery([
|
|
317
|
+
...selector_helper_1.informativeContent.object.buildSelectorWithAttributes(),
|
|
318
|
+
...selector_helper_1.informativeContent.embed.buildSelectorWithAttributes(),
|
|
319
|
+
...selector_helper_1.informativeContent.svg.buildSelectorWithAttributes(),
|
|
320
|
+
...selector_helper_1.informativeContent.canvas.buildSelectorWithAttributes()
|
|
321
|
+
]),
|
|
322
|
+
attributes: [
|
|
323
|
+
"title",
|
|
324
|
+
"aria-labelledby",
|
|
325
|
+
"aria-label"
|
|
326
|
+
],
|
|
327
|
+
description: "if present, attributes title, aria-label, aria-labelledby must contain short and concise information",
|
|
328
|
+
help: "adapt these attributes to be short and concise"
|
|
329
|
+
}),
|
|
330
|
+
model_1.ManualCheckA11yRule.from({
|
|
331
|
+
reference: "RGAA",
|
|
332
|
+
criterion: "1.4",
|
|
333
|
+
wcag: "1.1.1 A",
|
|
334
|
+
id: "1.4.1",
|
|
335
|
+
elementType: "image",
|
|
336
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.image.buildSelectorWithAttributes()),
|
|
337
|
+
attributes: selector_helper_1.informativeContent.image.ATTRIBUTES,
|
|
338
|
+
description: "For captcha or image-test, if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
339
|
+
help: "adapt these attributes to be relevant"
|
|
340
|
+
}),
|
|
341
|
+
model_1.ManualCheckA11yRule.from({
|
|
342
|
+
reference: "RGAA",
|
|
343
|
+
criterion: "1.4",
|
|
344
|
+
wcag: "1.1.1 A",
|
|
345
|
+
id: "1.4.2",
|
|
346
|
+
elementType: "area",
|
|
347
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.area.buildSelectorWithAttributes()),
|
|
348
|
+
attributes: selector_helper_1.informativeContent.area.ATTRIBUTES,
|
|
349
|
+
description: "For captcha or image-test, if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
350
|
+
help: "adapt these attributes to be relevant"
|
|
351
|
+
}),
|
|
352
|
+
model_1.ManualCheckA11yRule.from({
|
|
353
|
+
reference: "RGAA",
|
|
354
|
+
criterion: "1.4",
|
|
355
|
+
wcag: "1.1.1 A",
|
|
356
|
+
id: "1.4.3",
|
|
357
|
+
elementType: "input",
|
|
358
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.input.buildSelectorWithAttributes()),
|
|
359
|
+
attributes: selector_helper_1.informativeContent.input.ATTRIBUTES,
|
|
360
|
+
description: "For captcha or image-test, if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
361
|
+
help: "adapt these attributes to be relevant"
|
|
362
|
+
}),
|
|
363
|
+
model_1.ManualCheckA11yRule.from({
|
|
364
|
+
reference: "RGAA",
|
|
365
|
+
criterion: "1.4",
|
|
366
|
+
wcag: "1.1.1 A",
|
|
367
|
+
id: "1.4.4",
|
|
368
|
+
elementType: "object",
|
|
369
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.object.buildSelectorWithAttributes()),
|
|
370
|
+
attributes: selector_helper_1.informativeContent.object.ATTRIBUTES,
|
|
371
|
+
description: "For captcha or image-test, if present, attributes, title, aria-label, aria-labelledby must be relevant",
|
|
372
|
+
help: "adapt these attributes to be relevant"
|
|
373
|
+
}),
|
|
374
|
+
model_1.ManualCheckA11yRule.from({
|
|
375
|
+
reference: "RGAA",
|
|
376
|
+
criterion: "1.4",
|
|
377
|
+
wcag: "1.1.1 A",
|
|
378
|
+
id: "1.4.5",
|
|
379
|
+
elementType: "embed",
|
|
380
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.embed.buildSelectorWithAttributes()),
|
|
381
|
+
attributes: selector_helper_1.informativeContent.embed.ATTRIBUTES,
|
|
382
|
+
description: "For captcha or image-test, if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
383
|
+
help: "adapt these attributes to be relevant"
|
|
384
|
+
}),
|
|
385
|
+
model_1.ManualCheckA11yRule.from({
|
|
386
|
+
reference: "RGAA",
|
|
387
|
+
criterion: "1.4",
|
|
388
|
+
wcag: "1.1.1 A",
|
|
389
|
+
id: "1.4.6",
|
|
390
|
+
elementType: "svg",
|
|
391
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.svg.buildSelectorWithAttributes()),
|
|
392
|
+
attributes: selector_helper_1.informativeContent.svg.ATTRIBUTES,
|
|
393
|
+
description: "For captcha or image-test, if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
394
|
+
help: "adapt these attributes to be relevant"
|
|
395
|
+
}),
|
|
396
|
+
model_1.ManualCheckA11yRule.from({
|
|
397
|
+
reference: "RGAA",
|
|
398
|
+
criterion: "1.4",
|
|
399
|
+
wcag: "1.1.1 A",
|
|
400
|
+
id: "1.4.7",
|
|
401
|
+
elementType: "canvas",
|
|
402
|
+
query: new query_1.ByTagQuery(selector_helper_1.informativeContent.canvas.buildSelectorWithAttributes()),
|
|
403
|
+
attributes: selector_helper_1.informativeContent.canvas.ATTRIBUTES,
|
|
404
|
+
description: "For captcha or image-test, if present, attributes alt, title, aria-label, aria-labelledby must be relevant",
|
|
405
|
+
help: "adapt these attributes to be relevant"
|
|
406
|
+
}),
|
|
407
|
+
model_1.ManualCheckA11yRule.from({
|
|
408
|
+
reference: "RGAA",
|
|
409
|
+
criterion: "1.5",
|
|
410
|
+
wcag: "1.1.1 A",
|
|
411
|
+
id: "1.5.1",
|
|
412
|
+
elementType: "polymorph",
|
|
413
|
+
query: new query_1.ByTagQuery([
|
|
414
|
+
"img",
|
|
415
|
+
"area",
|
|
416
|
+
"object",
|
|
417
|
+
"embed",
|
|
418
|
+
"svg",
|
|
419
|
+
"canvas",
|
|
420
|
+
]),
|
|
421
|
+
description: "There is an alternative access solution to the content or function of the CAPTCHA",
|
|
422
|
+
help: "Add an alternative access solution"
|
|
423
|
+
}),
|
|
424
|
+
model_1.ManualCheckA11yRule.from({
|
|
425
|
+
reference: "RGAA",
|
|
426
|
+
criterion: "1.5",
|
|
427
|
+
wcag: "1.1.1 A",
|
|
428
|
+
id: "1.5.1",
|
|
429
|
+
elementType: "image",
|
|
430
|
+
query: new query_1.ByRoleQuery("img"),
|
|
431
|
+
description: "There is an alternative access solution to the content or function of the CAPTCHA",
|
|
432
|
+
help: "Add an alternative access solution"
|
|
433
|
+
}),
|
|
434
|
+
model_1.ManualCheckA11yRule.from({
|
|
435
|
+
reference: "RGAA",
|
|
436
|
+
criterion: "1.5",
|
|
437
|
+
wcag: "1.1.1 A",
|
|
438
|
+
id: "1.5.2",
|
|
439
|
+
elementType: "input",
|
|
440
|
+
query: new query_1.ByTagQuery([
|
|
441
|
+
selector_helper_1.informativeContent.input.SELECTOR
|
|
442
|
+
]),
|
|
443
|
+
description: "There is an alternative access solution to the content or function of the CAPTCHA",
|
|
444
|
+
help: "Add an alternative access solution"
|
|
445
|
+
}),
|
|
446
|
+
model_1.ManualCheckA11yRule.from({
|
|
447
|
+
reference: "RGAA",
|
|
448
|
+
criterion: "1.6",
|
|
449
|
+
wcag: "1.1.1 A",
|
|
450
|
+
id: "1.6.1",
|
|
451
|
+
elementType: "image",
|
|
452
|
+
query: new query_1.ByTagQuery([
|
|
453
|
+
`${selector_helper_1.informativeContent.image.SELECTOR}[longdesc]`
|
|
454
|
+
]),
|
|
455
|
+
attributes: [
|
|
456
|
+
"longdesc"
|
|
457
|
+
],
|
|
458
|
+
description: "the description must be relevant",
|
|
459
|
+
help: "adapt the description"
|
|
460
|
+
}),
|
|
461
|
+
model_1.ManualCheckA11yRule.from({
|
|
462
|
+
reference: "RGAA",
|
|
463
|
+
criterion: "1.6",
|
|
464
|
+
wcag: "1.1.1 A",
|
|
465
|
+
id: "1.6.1",
|
|
466
|
+
elementType: "image",
|
|
467
|
+
query: new query_1.ByRoleQuery("img", [
|
|
468
|
+
"longdesc"
|
|
469
|
+
]),
|
|
470
|
+
attributes: [
|
|
471
|
+
"longdesc"
|
|
472
|
+
],
|
|
473
|
+
description: "the description must be relevant",
|
|
474
|
+
help: "adapt the description"
|
|
475
|
+
}),
|
|
476
|
+
model_1.ManualCheckA11yRule.from({
|
|
477
|
+
reference: "RGAA",
|
|
478
|
+
criterion: "1.6",
|
|
479
|
+
wcag: "1.1.1 A",
|
|
480
|
+
id: "1.6.2",
|
|
481
|
+
elementType: "object",
|
|
482
|
+
query: new query_1.ByTagQuery([
|
|
483
|
+
`${selector_helper_1.informativeContent.object.SELECTOR}[longdesc]`
|
|
484
|
+
]),
|
|
485
|
+
attributes: [
|
|
486
|
+
"longdesc"
|
|
487
|
+
],
|
|
488
|
+
description: "the description must be relevant",
|
|
489
|
+
help: "adapt the description"
|
|
490
|
+
}),
|
|
491
|
+
model_1.ManualCheckA11yRule.from({
|
|
492
|
+
reference: "RGAA",
|
|
493
|
+
criterion: "1.6",
|
|
494
|
+
wcag: "1.1.1 A",
|
|
495
|
+
id: "1.6.3",
|
|
496
|
+
elementType: "embed",
|
|
497
|
+
query: new query_1.ByTagQuery([
|
|
498
|
+
`${selector_helper_1.informativeContent.embed.SELECTOR}[longdesc]`
|
|
499
|
+
]),
|
|
500
|
+
attributes: [
|
|
501
|
+
"longdesc"
|
|
502
|
+
],
|
|
503
|
+
description: "the description must be relevant",
|
|
504
|
+
help: "adapt the description"
|
|
505
|
+
}),
|
|
506
|
+
model_1.ManualCheckA11yRule.from({
|
|
507
|
+
reference: "RGAA",
|
|
508
|
+
criterion: "1.6",
|
|
509
|
+
wcag: "1.1.1 A",
|
|
510
|
+
id: "1.6.4",
|
|
511
|
+
elementType: "input",
|
|
512
|
+
query: new query_1.ByTagQuery([
|
|
513
|
+
`${selector_helper_1.informativeContent.input.SELECTOR}[longdesc]`
|
|
514
|
+
]),
|
|
515
|
+
attributes: [
|
|
516
|
+
"aria-describedby"
|
|
517
|
+
],
|
|
518
|
+
description: "the description must be relevant",
|
|
519
|
+
help: "adapt the description"
|
|
520
|
+
}),
|
|
521
|
+
model_1.ManualCheckA11yRule.from({
|
|
522
|
+
reference: "RGAA",
|
|
523
|
+
criterion: "1.6",
|
|
524
|
+
wcag: "1.1.1 A",
|
|
525
|
+
id: "1.6.5",
|
|
526
|
+
elementType: "svg",
|
|
527
|
+
query: new query_1.ByTagQuery([
|
|
528
|
+
`${selector_helper_1.informativeContent.svg.SELECTOR}[aria-describedby]`,
|
|
529
|
+
`${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`,
|
|
530
|
+
]),
|
|
531
|
+
attributes: [
|
|
532
|
+
"aria-describedby",
|
|
533
|
+
"aria-labelledby"
|
|
534
|
+
],
|
|
535
|
+
description: "the description must be relevant",
|
|
536
|
+
help: "adapt the description"
|
|
537
|
+
}),
|
|
538
|
+
model_1.ManualCheckA11yRule.from({
|
|
539
|
+
reference: "RGAA",
|
|
540
|
+
criterion: "1.6",
|
|
541
|
+
wcag: "1.1.1 A",
|
|
542
|
+
id: "1.6.6",
|
|
543
|
+
elementType: "svg",
|
|
544
|
+
query: new query_1.ByTagQuery([
|
|
545
|
+
`${selector_helper_1.informativeContent.svg.SELECTOR}[aria-describedby]`,
|
|
546
|
+
`${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`,
|
|
547
|
+
`${selector_helper_1.informativeContent.svg.SELECTOR}[aria-label]`,
|
|
548
|
+
]),
|
|
549
|
+
attributes: [
|
|
550
|
+
"aria-describedby",
|
|
551
|
+
"aria-labelledby",
|
|
552
|
+
"aria-label"
|
|
553
|
+
],
|
|
554
|
+
description: "if description in attribute, the description must be correctly rendered by assistive technologies",
|
|
555
|
+
help: "render description by assistive technologies"
|
|
556
|
+
}),
|
|
557
|
+
model_1.ManualCheckA11yRule.from({
|
|
558
|
+
reference: "RGAA",
|
|
559
|
+
criterion: "1.6",
|
|
560
|
+
wcag: "1.1.1 A",
|
|
561
|
+
id: "1.6.7",
|
|
562
|
+
elementType: "svg",
|
|
563
|
+
query: new query_1.ByTagQuery([
|
|
564
|
+
`${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`,
|
|
565
|
+
]),
|
|
566
|
+
attributes: [
|
|
567
|
+
"aria-labelledby"
|
|
568
|
+
],
|
|
569
|
+
description: "the description must be relevant",
|
|
570
|
+
help: "adapt the description"
|
|
571
|
+
}),
|
|
572
|
+
model_1.ManualCheckA11yRule.from({
|
|
573
|
+
reference: "RGAA",
|
|
574
|
+
criterion: "1.6",
|
|
575
|
+
wcag: "1.1.1 A",
|
|
576
|
+
id: "1.6.8",
|
|
577
|
+
elementType: "canvas",
|
|
578
|
+
query: new query_1.ByTagQuery([
|
|
579
|
+
`${selector_helper_1.informativeContent.canvas.SELECTOR}[aria-describedby]`,
|
|
580
|
+
`${selector_helper_1.informativeContent.canvas.SELECTOR}[aria-labelledby]`,
|
|
581
|
+
`${selector_helper_1.informativeContent.canvas.SELECTOR}[aria-label]`,
|
|
582
|
+
]),
|
|
583
|
+
attributes: [
|
|
584
|
+
"aria-describedby",
|
|
585
|
+
"aria-labelledby",
|
|
586
|
+
"aria-label"
|
|
587
|
+
],
|
|
588
|
+
description: "if description in attribute, the description must be correctly rendered by assistive technologies",
|
|
589
|
+
help: "render description by assistive technologies"
|
|
590
|
+
}),
|
|
591
|
+
model_1.ManualCheckA11yRule.from({
|
|
592
|
+
reference: "RGAA",
|
|
593
|
+
criterion: "1.6",
|
|
594
|
+
wcag: "1.1.1 A",
|
|
595
|
+
id: "1.6.9",
|
|
596
|
+
elementType: "polymorph",
|
|
597
|
+
query: new query_1.ByTagQuery([
|
|
598
|
+
"img[alt][aria-describedby]",
|
|
599
|
+
"input[type^=image][aria-describedby]",
|
|
600
|
+
"area[alt][aria-describedby]",
|
|
601
|
+
"object[type^=image][aria-describedby]",
|
|
602
|
+
"embed[type^=image][aria-describedby]",
|
|
603
|
+
"svg[aria-describedby]",
|
|
604
|
+
"canvas[aria-describedby]"
|
|
605
|
+
]),
|
|
606
|
+
attributes: [
|
|
607
|
+
"aria-describedby"
|
|
608
|
+
],
|
|
609
|
+
description: "does the WAI-ARIA attribute aria-describedby associate with the detailed description?",
|
|
610
|
+
help: "adapt the description"
|
|
611
|
+
}),
|
|
612
|
+
model_1.ManualCheckA11yRule.from({
|
|
613
|
+
reference: "RGAA",
|
|
614
|
+
criterion: "1.6",
|
|
615
|
+
wcag: "1.1.1 A",
|
|
616
|
+
id: "1.6.9",
|
|
617
|
+
elementType: "polymorph",
|
|
618
|
+
query: new query_1.ByRoleQuery("img", [
|
|
619
|
+
"alt",
|
|
620
|
+
"aria-describedby"
|
|
621
|
+
]),
|
|
622
|
+
attributes: [
|
|
623
|
+
"aria-describedby"
|
|
624
|
+
],
|
|
625
|
+
description: "does the WAI-ARIA attribute aria-describedby associate with the detailed description?",
|
|
626
|
+
help: "adapt the description"
|
|
627
|
+
}),
|
|
628
|
+
model_1.ManualCheckA11yRule.from({
|
|
629
|
+
reference: "RGAA",
|
|
630
|
+
criterion: "1.6",
|
|
631
|
+
wcag: "1.1.1 A",
|
|
632
|
+
id: "1.6.10",
|
|
633
|
+
elementType: "polymorph",
|
|
634
|
+
query: new query_1.ByRoleQuery("img", [
|
|
635
|
+
"alt",
|
|
636
|
+
"aria-describedby"
|
|
637
|
+
]),
|
|
638
|
+
attributes: [
|
|
639
|
+
"aria-describedby"
|
|
640
|
+
],
|
|
641
|
+
description: "does the WAI-ARIA attribute aria-describedby associate with the detailed description?",
|
|
642
|
+
help: "adapt the description"
|
|
643
|
+
})
|
|
644
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AutoCheckA11yRule } from "../../../model";
|
|
2
|
+
declare const _default: (AutoCheckA11yRule & {
|
|
3
|
+
attributes?: string[] | undefined;
|
|
4
|
+
reference: string;
|
|
5
|
+
criterion: string;
|
|
6
|
+
wcag: string;
|
|
7
|
+
id: string;
|
|
8
|
+
elementType: string;
|
|
9
|
+
query: import("../../../query").Query;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
help?: string | string[] | undefined;
|
|
12
|
+
shouldNotExist?: boolean | undefined;
|
|
13
|
+
})[];
|
|
14
|
+
export default _default;
|