@uuv/a11y 1.0.0-beta.2 → 1.0.0-beta.21

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +168 -0
  2. package/CONTRIBUTING.md +46 -0
  3. package/LICENSE +1 -1
  4. package/README.md +32 -249
  5. package/STRUCTURE.md +10 -0
  6. package/bundle/uuv-a11y.bundle.js +2 -2
  7. package/bundle/uuv-a11y.bundle.js.LICENSE.txt +1 -19
  8. package/dist/CHANGELOG.md +169 -0
  9. package/dist/CONTRIBUTING.md +46 -0
  10. package/dist/README.md +32 -249
  11. package/dist/STRUCTURE.md +10 -0
  12. package/dist/lib/engine/engine.js +28 -16
  13. package/dist/lib/model/index.d.ts +1 -1
  14. package/dist/lib/model/index.js +1 -1
  15. package/dist/lib/model/result.d.ts +2 -1
  16. package/dist/lib/model/rule.d.ts +0 -7
  17. package/dist/lib/model/rule.js +0 -2
  18. package/dist/lib/query/00-query.d.ts +6 -1
  19. package/dist/lib/query/00-query.js +10 -0
  20. package/dist/lib/query/accessible-name.query.d.ts +4 -2
  21. package/dist/lib/query/accessible-name.query.js +10 -7
  22. package/dist/lib/query/by-role.query.d.ts +4 -3
  23. package/dist/lib/query/by-role.query.js +22 -6
  24. package/dist/lib/query/by-sibling.query.d.ts +12 -0
  25. package/dist/lib/query/by-sibling.query.js +100 -0
  26. package/dist/lib/query/by-tag.query.d.ts +2 -2
  27. package/dist/lib/query/by-tag.query.js +4 -5
  28. package/dist/lib/query/compliant-attributes/attribut-specification.d.ts +34 -0
  29. package/dist/lib/query/compliant-attributes/attribut-specification.js +96 -0
  30. package/dist/lib/query/compliant-attributes/attribute-checker.d.ts +47 -0
  31. package/dist/lib/query/compliant-attributes/attribute-checker.js +73 -0
  32. package/dist/lib/query/compliant-attributes/compliant-attributes.query.d.ts +9 -0
  33. package/dist/lib/query/compliant-attributes/compliant-attributes.query.js +24 -0
  34. package/dist/lib/query/doctype.query.d.ts +2 -2
  35. package/dist/lib/query/doctype.query.js +2 -1
  36. package/dist/lib/query/form.query.d.ts +2 -2
  37. package/dist/lib/query/index.d.ts +7 -0
  38. package/dist/lib/query/index.js +7 -0
  39. package/dist/lib/query/operators/and-query.d.ts +8 -0
  40. package/dist/lib/query/operators/and-query.js +25 -0
  41. package/dist/lib/query/operators/operator-query.d.ts +8 -0
  42. package/dist/lib/query/operators/operator-query.js +14 -0
  43. package/dist/lib/query/operators/or-query.d.ts +8 -0
  44. package/dist/lib/query/operators/or-query.js +24 -0
  45. package/dist/lib/reference/rgaa/coverage/coverage-statement.json +56 -17
  46. package/dist/lib/reference/rgaa/rules/1-image.d.ts +0 -1
  47. package/dist/lib/reference/rgaa/rules/1-image.js +51 -77
  48. package/dist/lib/reference/rgaa/rules/11-form.d.ts +0 -1
  49. package/dist/lib/reference/rgaa/rules/11-form.js +0 -1
  50. package/dist/lib/reference/rgaa/rules/2-frame.d.ts +0 -1
  51. package/dist/lib/reference/rgaa/rules/2-frame.js +8 -7
  52. package/dist/lib/reference/rgaa/rules/3-color.d.ts +0 -1
  53. package/dist/lib/reference/rgaa/rules/3-color.js +0 -3
  54. package/dist/lib/reference/rgaa/rules/5-table.d.ts +12 -1
  55. package/dist/lib/reference/rgaa/rules/5-table.js +292 -1
  56. package/dist/lib/reference/rgaa/rules/6-link.d.ts +12 -1
  57. package/dist/lib/reference/rgaa/rules/6-link.js +147 -1
  58. package/dist/lib/reference/rgaa/rules/8-required-element.d.ts +0 -1
  59. package/dist/lib/reference/rgaa/rules/8-required-element.js +57 -9
  60. package/dist/lib/reference/rgaa/selector-helper.d.ts +40 -1
  61. package/dist/lib/reference/rgaa/selector-helper.js +82 -10
  62. package/dist/package.json +15 -4
  63. package/package.json +15 -4
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const model_1 = require("../../../model");
4
4
  const query_1 = require("../../../query");
5
5
  const selector_helper_1 = require("../selector-helper");
6
+ const by_sibling_query_1 = require("../../../query/by-sibling.query");
6
7
  exports.default = [
7
8
  model_1.AutoCheckA11yRule.from({
8
- reference: "RGAA",
9
9
  criterion: "1.1",
10
10
  wcag: "1.1.1 A",
11
11
  id: "1.1.1",
@@ -17,17 +17,15 @@ exports.default = [
17
17
  help: "set text information to image"
18
18
  }),
19
19
  model_1.AutoCheckA11yRule.from({
20
- reference: "RGAA",
21
20
  criterion: "1.1",
22
21
  wcag: "1.1.1 A",
23
22
  id: "1.1.1",
24
23
  elementType: "image",
25
- query: new query_1.AccessibleNameQuery(new query_1.ByRoleQuery("img", []), true),
24
+ query: new query_1.AccessibleNameQuery(new query_1.ByRoleQuery("img", [], ["object", "svg", "embed", "canvas"]), true),
26
25
  description: "image has no text information",
27
26
  help: "set text information to image"
28
27
  }),
29
28
  model_1.AutoCheckA11yRule.from({
30
- reference: "RGAA",
31
29
  criterion: "1.1",
32
30
  wcag: "1.1.1 A",
33
31
  id: "1.1.2",
@@ -39,19 +37,22 @@ exports.default = [
39
37
  help: "set alternative text to area"
40
38
  }),
41
39
  model_1.AutoCheckA11yRule.from({
42
- reference: "RGAA",
43
40
  criterion: "1.1",
44
41
  wcag: "1.1.1 A",
45
42
  id: "1.1.3",
46
43
  elementType: "input",
47
- query: new query_1.AccessibleNameQuery(new query_1.ByTagQuery([
44
+ query: new query_1.CompliantAttributesQuery(new query_1.ByTagQuery([
48
45
  selector_helper_1.informativeContent.input.SELECTOR
49
- ]), true),
46
+ ]), [
47
+ query_1.AttributeChecker.emptyAttribute("alt"),
48
+ query_1.AttributeChecker.emptyAttribute("aria-label"),
49
+ query_1.AttributeChecker.emptyAttribute("title"),
50
+ query_1.AttributeChecker.emptyHtmlNodeTargetedByTheAttribute("aria-labelledBy")
51
+ ]),
50
52
  description: "input with image type has no alternative text",
51
53
  help: "set alternative text to input with image type"
52
54
  }),
53
55
  model_1.AutoCheckA11yRule.from({
54
- reference: "RGAA",
55
56
  criterion: "1.1",
56
57
  wcag: "1.1.1 A",
57
58
  id: "1.1.4",
@@ -63,7 +64,6 @@ exports.default = [
63
64
  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
  }),
65
66
  model_1.AutoCheckA11yRule.from({
66
- reference: "RGAA",
67
67
  criterion: "1.1",
68
68
  wcag: "1.1.1 A",
69
69
  id: "1.1.5",
@@ -75,7 +75,6 @@ exports.default = [
75
75
  help: "set alternative text to svg"
76
76
  }),
77
77
  model_1.AutoCheckA11yRule.from({
78
- reference: "RGAA",
79
78
  criterion: "1.1",
80
79
  wcag: "1.1.1 A",
81
80
  id: "1.1.5",
@@ -87,43 +86,55 @@ exports.default = [
87
86
  help: "set image role to svg"
88
87
  }),
89
88
  model_1.AutoCheckA11yRule.from({
90
- reference: "RGAA",
91
89
  criterion: "1.1",
92
90
  wcag: "1.1.1 A",
93
91
  id: "1.1.6",
94
92
  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"
93
+ query: new query_1.ByTagQuery([`${selector_helper_1.informativeContent.object.SELECTOR}:not([role=img])`]),
94
+ description: "object has no role image",
95
+ help: "add role image"
100
96
  }),
101
97
  model_1.AutoCheckA11yRule.from({
102
- reference: "RGAA",
103
98
  criterion: "1.1",
104
99
  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"
100
+ id: "1.1.6",
101
+ elementType: "object",
102
+ query: query_1.OperatorQuery.And(new query_1.AccessibleNameQuery(new query_1.ByTagQuery([`${selector_helper_1.informativeContent.object.SELECTOR}[role=img]`]), true), new by_sibling_query_1.BySiblingQuery(new query_1.ByTagQuery([`${selector_helper_1.informativeContent.object.SELECTOR}[role=img]`]), false, [selector_helper_1.siblingElement.button.SELECTOR, "a"])),
103
+ description: "object has no alternative text",
104
+ help: "domNode corresponds to the object node and linkedNodes corresponds to the nodes to be analysed"
112
105
  }),
113
- model_1.AutoCheckA11yRule.from({
114
- reference: "RGAA",
106
+ model_1.ManualCheckA11yRule.from({
115
107
  criterion: "1.1",
116
108
  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
- }),
109
+ id: "1.1.6",
110
+ elementType: "object",
111
+ query: query_1.OperatorQuery.And(new query_1.AccessibleNameQuery(new query_1.ByTagQuery([`${selector_helper_1.informativeContent.object.SELECTOR}[role=img]`]), true), new by_sibling_query_1.BySiblingQuery(new query_1.ByTagQuery([`${selector_helper_1.informativeContent.object.SELECTOR}[role=img]`]), true, [selector_helper_1.siblingElement.button.SELECTOR, "a"])),
112
+ description: "object has sibling elements to check",
113
+ help: "domNode corresponds to the object node and linkedNodes corresponds to the nodes to be analysed"
114
+ }),
115
+ // AutoCheckA11yRule.from({
116
+ // // criterion: "1.1",
117
+ // wcag: "1.1.1 A",
118
+ // id: "1.1.7",
119
+ // elementType: "embed",
120
+ // query: new AccessibleNameQuery(new ByTagQuery([
121
+ // informativeContent.embed.SELECTOR
122
+ // ]), true),
123
+ // description: "embed has no image role or no alternative text",
124
+ // help: "set image role to embed and alternative text"
125
+ // }),
126
+ // AutoCheckA11yRule.from({
127
+ // // criterion: "1.1",
128
+ // wcag: "1.1.1 A",
129
+ // id: "1.1.8",
130
+ // elementType: "canvas",
131
+ // query: new AccessibleNameQuery(new ByTagQuery([
132
+ // "canvas[role=img]"
133
+ // ]), true),
134
+ // description: "canvas has no image role and no alternative text",
135
+ // help: "set image role to canvas and alternative text"
136
+ // }),
125
137
  model_1.AutoCheckA11yRule.from({
126
- reference: "RGAA",
127
138
  criterion: "1.2",
128
139
  wcag: "1.1.1 A, 4.1.2 A",
129
140
  id: "1.2.1",
@@ -137,7 +148,6 @@ exports.default = [
137
148
  help: "remove alternative text to decorative image"
138
149
  }),
139
150
  model_1.AutoCheckA11yRule.from({
140
- reference: "RGAA",
141
151
  criterion: "1.2",
142
152
  wcag: "1.1.1 A, 4.1.2 A",
143
153
  id: "1.2.2",
@@ -151,7 +161,6 @@ exports.default = [
151
161
  help: "remove alternative text to decorative area"
152
162
  }),
153
163
  model_1.AutoCheckA11yRule.from({
154
- reference: "RGAA",
155
164
  criterion: "1.2",
156
165
  wcag: "1.1.1 A, 4.1.2 A",
157
166
  id: "1.2.3",
@@ -163,7 +172,6 @@ exports.default = [
163
172
  help: "remove alternative text to decorative object"
164
173
  }),
165
174
  model_1.AutoCheckA11yRule.from({
166
- reference: "RGAA",
167
175
  criterion: "1.2",
168
176
  wcag: "1.1.1 A, 4.1.2 A",
169
177
  id: "1.2.4",
@@ -176,7 +184,6 @@ exports.default = [
176
184
  help: "remove alternative text to decorative svg"
177
185
  }),
178
186
  model_1.AutoCheckA11yRule.from({
179
- reference: "RGAA",
180
187
  criterion: "1.2",
181
188
  wcag: "1.1.1 A, 4.1.2 A",
182
189
  id: "1.2.5",
@@ -188,7 +195,6 @@ exports.default = [
188
195
  help: "remove alternative text to decorative canvas"
189
196
  }),
190
197
  model_1.AutoCheckA11yRule.from({
191
- reference: "RGAA",
192
198
  criterion: "1.2",
193
199
  wcag: "1.1.1 A, 4.1.2 A",
194
200
  id: "1.2.6",
@@ -200,7 +206,6 @@ exports.default = [
200
206
  help: "remove alternative text to decorative embed"
201
207
  }),
202
208
  model_1.ManualCheckA11yRule.from({
203
- reference: "RGAA",
204
209
  criterion: "1.3",
205
210
  wcag: "4.1.2 A",
206
211
  id: "1.3.1",
@@ -211,7 +216,6 @@ exports.default = [
211
216
  help: "adapt these attributes to be relevant"
212
217
  }),
213
218
  model_1.ManualCheckA11yRule.from({
214
- reference: "RGAA",
215
219
  criterion: "1.3",
216
220
  wcag: "4.1.2 A",
217
221
  id: "1.3.1",
@@ -222,7 +226,6 @@ exports.default = [
222
226
  help: "adapt these attributes to be relevant"
223
227
  }),
224
228
  model_1.ManualCheckA11yRule.from({
225
- reference: "RGAA",
226
229
  criterion: "1.3",
227
230
  wcag: "4.1.2 A",
228
231
  id: "1.3.2",
@@ -233,7 +236,6 @@ exports.default = [
233
236
  help: "adapt these attributes to be relevant"
234
237
  }),
235
238
  model_1.ManualCheckA11yRule.from({
236
- reference: "RGAA",
237
239
  criterion: "1.3",
238
240
  wcag: "4.1.2 A",
239
241
  id: "1.3.3",
@@ -244,7 +246,6 @@ exports.default = [
244
246
  help: "adapt these attributes to be relevant"
245
247
  }),
246
248
  model_1.ManualCheckA11yRule.from({
247
- reference: "RGAA",
248
249
  criterion: "1.3",
249
250
  wcag: "4.1.2 A",
250
251
  id: "1.3.4",
@@ -255,7 +256,6 @@ exports.default = [
255
256
  help: "adapt these attributes to be relevant"
256
257
  }),
257
258
  model_1.ManualCheckA11yRule.from({
258
- reference: "RGAA",
259
259
  criterion: "1.3",
260
260
  wcag: "4.1.2 A",
261
261
  id: "1.3.5",
@@ -266,7 +266,6 @@ exports.default = [
266
266
  help: "adapt these attributes to be relevant"
267
267
  }),
268
268
  model_1.ManualCheckA11yRule.from({
269
- reference: "RGAA",
270
269
  criterion: "1.3",
271
270
  wcag: "4.1.2 A",
272
271
  id: "1.3.6",
@@ -277,7 +276,6 @@ exports.default = [
277
276
  help: "adapt these attributes to be relevant"
278
277
  }),
279
278
  model_1.ManualCheckA11yRule.from({
280
- reference: "RGAA",
281
279
  criterion: "1.3",
282
280
  wcag: "4.1.2 A",
283
281
  id: "1.3.7",
@@ -288,7 +286,6 @@ exports.default = [
288
286
  help: "adapt these attributes to be relevant"
289
287
  }),
290
288
  model_1.ManualCheckA11yRule.from({
291
- reference: "RGAA",
292
289
  criterion: "1.3",
293
290
  wcag: "4.1.2 A",
294
291
  id: "1.3.9",
@@ -308,7 +305,6 @@ exports.default = [
308
305
  help: "adapt these attributes to be short and concise"
309
306
  }),
310
307
  model_1.ManualCheckA11yRule.from({
311
- reference: "RGAA",
312
308
  criterion: "1.3",
313
309
  wcag: "4.1.2 A",
314
310
  id: "1.3.9",
@@ -328,7 +324,6 @@ exports.default = [
328
324
  help: "adapt these attributes to be short and concise"
329
325
  }),
330
326
  model_1.ManualCheckA11yRule.from({
331
- reference: "RGAA",
332
327
  criterion: "1.4",
333
328
  wcag: "1.1.1 A",
334
329
  id: "1.4.1",
@@ -339,7 +334,6 @@ exports.default = [
339
334
  help: "adapt these attributes to be relevant"
340
335
  }),
341
336
  model_1.ManualCheckA11yRule.from({
342
- reference: "RGAA",
343
337
  criterion: "1.4",
344
338
  wcag: "1.1.1 A",
345
339
  id: "1.4.2",
@@ -350,7 +344,6 @@ exports.default = [
350
344
  help: "adapt these attributes to be relevant"
351
345
  }),
352
346
  model_1.ManualCheckA11yRule.from({
353
- reference: "RGAA",
354
347
  criterion: "1.4",
355
348
  wcag: "1.1.1 A",
356
349
  id: "1.4.3",
@@ -361,7 +354,6 @@ exports.default = [
361
354
  help: "adapt these attributes to be relevant"
362
355
  }),
363
356
  model_1.ManualCheckA11yRule.from({
364
- reference: "RGAA",
365
357
  criterion: "1.4",
366
358
  wcag: "1.1.1 A",
367
359
  id: "1.4.4",
@@ -372,7 +364,6 @@ exports.default = [
372
364
  help: "adapt these attributes to be relevant"
373
365
  }),
374
366
  model_1.ManualCheckA11yRule.from({
375
- reference: "RGAA",
376
367
  criterion: "1.4",
377
368
  wcag: "1.1.1 A",
378
369
  id: "1.4.5",
@@ -383,7 +374,6 @@ exports.default = [
383
374
  help: "adapt these attributes to be relevant"
384
375
  }),
385
376
  model_1.ManualCheckA11yRule.from({
386
- reference: "RGAA",
387
377
  criterion: "1.4",
388
378
  wcag: "1.1.1 A",
389
379
  id: "1.4.6",
@@ -394,7 +384,6 @@ exports.default = [
394
384
  help: "adapt these attributes to be relevant"
395
385
  }),
396
386
  model_1.ManualCheckA11yRule.from({
397
- reference: "RGAA",
398
387
  criterion: "1.4",
399
388
  wcag: "1.1.1 A",
400
389
  id: "1.4.7",
@@ -405,7 +394,6 @@ exports.default = [
405
394
  help: "adapt these attributes to be relevant"
406
395
  }),
407
396
  model_1.ManualCheckA11yRule.from({
408
- reference: "RGAA",
409
397
  criterion: "1.5",
410
398
  wcag: "1.1.1 A",
411
399
  id: "1.5.1",
@@ -416,13 +404,12 @@ exports.default = [
416
404
  "object",
417
405
  "embed",
418
406
  "svg",
419
- "canvas",
407
+ "canvas"
420
408
  ]),
421
409
  description: "There is an alternative access solution to the content or function of the CAPTCHA",
422
410
  help: "Add an alternative access solution"
423
411
  }),
424
412
  model_1.ManualCheckA11yRule.from({
425
- reference: "RGAA",
426
413
  criterion: "1.5",
427
414
  wcag: "1.1.1 A",
428
415
  id: "1.5.1",
@@ -432,7 +419,6 @@ exports.default = [
432
419
  help: "Add an alternative access solution"
433
420
  }),
434
421
  model_1.ManualCheckA11yRule.from({
435
- reference: "RGAA",
436
422
  criterion: "1.5",
437
423
  wcag: "1.1.1 A",
438
424
  id: "1.5.2",
@@ -444,7 +430,6 @@ exports.default = [
444
430
  help: "Add an alternative access solution"
445
431
  }),
446
432
  model_1.ManualCheckA11yRule.from({
447
- reference: "RGAA",
448
433
  criterion: "1.6",
449
434
  wcag: "1.1.1 A",
450
435
  id: "1.6.1",
@@ -459,7 +444,6 @@ exports.default = [
459
444
  help: "adapt the description"
460
445
  }),
461
446
  model_1.ManualCheckA11yRule.from({
462
- reference: "RGAA",
463
447
  criterion: "1.6",
464
448
  wcag: "1.1.1 A",
465
449
  id: "1.6.1",
@@ -474,7 +458,6 @@ exports.default = [
474
458
  help: "adapt the description"
475
459
  }),
476
460
  model_1.ManualCheckA11yRule.from({
477
- reference: "RGAA",
478
461
  criterion: "1.6",
479
462
  wcag: "1.1.1 A",
480
463
  id: "1.6.2",
@@ -489,7 +472,6 @@ exports.default = [
489
472
  help: "adapt the description"
490
473
  }),
491
474
  model_1.ManualCheckA11yRule.from({
492
- reference: "RGAA",
493
475
  criterion: "1.6",
494
476
  wcag: "1.1.1 A",
495
477
  id: "1.6.3",
@@ -504,7 +486,6 @@ exports.default = [
504
486
  help: "adapt the description"
505
487
  }),
506
488
  model_1.ManualCheckA11yRule.from({
507
- reference: "RGAA",
508
489
  criterion: "1.6",
509
490
  wcag: "1.1.1 A",
510
491
  id: "1.6.4",
@@ -519,14 +500,13 @@ exports.default = [
519
500
  help: "adapt the description"
520
501
  }),
521
502
  model_1.ManualCheckA11yRule.from({
522
- reference: "RGAA",
523
503
  criterion: "1.6",
524
504
  wcag: "1.1.1 A",
525
505
  id: "1.6.5",
526
506
  elementType: "svg",
527
507
  query: new query_1.ByTagQuery([
528
508
  `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-describedby]`,
529
- `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`,
509
+ `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`
530
510
  ]),
531
511
  attributes: [
532
512
  "aria-describedby",
@@ -536,7 +516,6 @@ exports.default = [
536
516
  help: "adapt the description"
537
517
  }),
538
518
  model_1.ManualCheckA11yRule.from({
539
- reference: "RGAA",
540
519
  criterion: "1.6",
541
520
  wcag: "1.1.1 A",
542
521
  id: "1.6.6",
@@ -544,7 +523,7 @@ exports.default = [
544
523
  query: new query_1.ByTagQuery([
545
524
  `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-describedby]`,
546
525
  `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`,
547
- `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-label]`,
526
+ `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-label]`
548
527
  ]),
549
528
  attributes: [
550
529
  "aria-describedby",
@@ -555,13 +534,12 @@ exports.default = [
555
534
  help: "render description by assistive technologies"
556
535
  }),
557
536
  model_1.ManualCheckA11yRule.from({
558
- reference: "RGAA",
559
537
  criterion: "1.6",
560
538
  wcag: "1.1.1 A",
561
539
  id: "1.6.7",
562
540
  elementType: "svg",
563
541
  query: new query_1.ByTagQuery([
564
- `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`,
542
+ `${selector_helper_1.informativeContent.svg.SELECTOR}[aria-labelledby]`
565
543
  ]),
566
544
  attributes: [
567
545
  "aria-labelledby"
@@ -570,7 +548,6 @@ exports.default = [
570
548
  help: "adapt the description"
571
549
  }),
572
550
  model_1.ManualCheckA11yRule.from({
573
- reference: "RGAA",
574
551
  criterion: "1.6",
575
552
  wcag: "1.1.1 A",
576
553
  id: "1.6.8",
@@ -578,7 +555,7 @@ exports.default = [
578
555
  query: new query_1.ByTagQuery([
579
556
  `${selector_helper_1.informativeContent.canvas.SELECTOR}[aria-describedby]`,
580
557
  `${selector_helper_1.informativeContent.canvas.SELECTOR}[aria-labelledby]`,
581
- `${selector_helper_1.informativeContent.canvas.SELECTOR}[aria-label]`,
558
+ `${selector_helper_1.informativeContent.canvas.SELECTOR}[aria-label]`
582
559
  ]),
583
560
  attributes: [
584
561
  "aria-describedby",
@@ -589,7 +566,6 @@ exports.default = [
589
566
  help: "render description by assistive technologies"
590
567
  }),
591
568
  model_1.ManualCheckA11yRule.from({
592
- reference: "RGAA",
593
569
  criterion: "1.6",
594
570
  wcag: "1.1.1 A",
595
571
  id: "1.6.9",
@@ -610,7 +586,6 @@ exports.default = [
610
586
  help: "adapt the description"
611
587
  }),
612
588
  model_1.ManualCheckA11yRule.from({
613
- reference: "RGAA",
614
589
  criterion: "1.6",
615
590
  wcag: "1.1.1 A",
616
591
  id: "1.6.9",
@@ -626,7 +601,6 @@ exports.default = [
626
601
  help: "adapt the description"
627
602
  }),
628
603
  model_1.ManualCheckA11yRule.from({
629
- reference: "RGAA",
630
604
  criterion: "1.6",
631
605
  wcag: "1.1.1 A",
632
606
  id: "1.6.10",
@@ -1,7 +1,6 @@
1
1
  import { AutoCheckA11yRule } from "../../../model";
2
2
  declare const _default: (AutoCheckA11yRule & {
3
3
  attributes?: string[] | undefined;
4
- reference: string;
5
4
  criterion: string;
6
5
  wcag: string;
7
6
  id: string;
@@ -4,7 +4,6 @@ const model_1 = require("../../../model");
4
4
  const query_1 = require("../../../query");
5
5
  exports.default = [
6
6
  model_1.AutoCheckA11yRule.from({
7
- reference: "RGAA",
8
7
  criterion: "11.1",
9
8
  wcag: "1.3.1 A, 2.4.6 AA, 3.3.2 A, 4.1.2 A",
10
9
  id: "11.1.1",
@@ -1,7 +1,6 @@
1
1
  import { AutoCheckA11yRule } from "../../../model";
2
2
  declare const _default: (AutoCheckA11yRule & {
3
3
  attributes?: string[] | undefined;
4
- reference: string;
5
4
  criterion: string;
6
5
  wcag: string;
7
6
  id: string;
@@ -4,26 +4,27 @@ const model_1 = require("../../../model");
4
4
  const query_1 = require("../../../query");
5
5
  exports.default = [
6
6
  model_1.AutoCheckA11yRule.from({
7
- reference: "RGAA",
8
7
  criterion: "2.1",
9
8
  wcag: "4.1.2 A",
10
9
  id: "2.1.1",
11
10
  elementType: "iframe",
12
- query: new query_1.ByTagQuery([
13
- "iframe:not([title]),frame:not([title])"
11
+ query: new query_1.CompliantAttributesQuery(new query_1.ByTagQuery([
12
+ "iframe", "frame"
13
+ ]), [
14
+ query_1.AttributeChecker.emptyAttribute("title"),
14
15
  ]),
15
16
  description: "iframe has no title",
16
17
  help: "set a title to iframe"
17
18
  }),
18
19
  model_1.ManualCheckA11yRule.from({
19
- reference: "RGAA",
20
20
  criterion: "2.2",
21
21
  wcag: "4.1.2 A",
22
22
  id: "2.2.1",
23
23
  elementType: "iframe",
24
- query: new query_1.ByTagQuery([
25
- "iframe[title]",
26
- "frame[title]"
24
+ query: new query_1.CompliantAttributesQuery(new query_1.ByTagQuery([
25
+ "iframe", "frame"
26
+ ]), [
27
+ query_1.AttributeChecker.notEmptyAttribute("title"),
27
28
  ]),
28
29
  attributes: [
29
30
  "title"
@@ -1,7 +1,6 @@
1
1
  import { ManualCheckA11yRule } from "../../../model";
2
2
  declare const _default: (ManualCheckA11yRule & {
3
3
  attributes?: string[] | undefined;
4
- reference: string;
5
4
  criterion: string;
6
5
  wcag: string;
7
6
  id: string;
@@ -4,7 +4,6 @@ const model_1 = require("../../../model");
4
4
  const query_1 = require("../../../query");
5
5
  exports.default = [
6
6
  model_1.ManualCheckA11yRule.from({
7
- reference: "RGAA",
8
7
  criterion: "3.1",
9
8
  wcag: "1.3.1 A, 1.1.4 A",
10
9
  id: "3.1.3",
@@ -24,7 +23,6 @@ exports.default = [
24
23
  help: "adapt shape of image"
25
24
  }),
26
25
  model_1.ManualCheckA11yRule.from({
27
- reference: "RGAA",
28
26
  criterion: "3.1",
29
27
  wcag: "1.3.1 A, 1.1.4 A",
30
28
  id: "3.1.5",
@@ -36,7 +34,6 @@ exports.default = [
36
34
  help: "adapt shape of temporal media"
37
35
  }),
38
36
  model_1.ManualCheckA11yRule.from({
39
- reference: "RGAA",
40
37
  criterion: "3.1",
41
38
  wcag: "1.3.1 A, 1.1.4 A",
42
39
  id: "3.1.6",
@@ -1,2 +1,13 @@
1
- declare const _default: never[];
1
+ import { AutoCheckA11yRule } from "../../../model";
2
+ declare const _default: (AutoCheckA11yRule & {
3
+ attributes?: string[] | undefined;
4
+ criterion: string;
5
+ wcag: string;
6
+ id: string;
7
+ elementType: string;
8
+ query: import("../../../query").Query;
9
+ description?: string | undefined;
10
+ help?: string | string[] | undefined;
11
+ shouldNotExist?: boolean | undefined;
12
+ })[];
2
13
  export default _default;