eaa-kit 0.6.0 → 0.9.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 +52 -15
- package/dist/astro/index.d.ts +1 -1
- package/dist/astro/index.js +1 -1
- package/dist/audit/runners/worker.js +1 -1
- package/dist/audit-CJDCQaFY.js +2 -0
- package/dist/{audit-e_uixhPG.js → audit-J2jeLo-y.js} +170 -241
- package/dist/{baseline-BscHfFSW.js → baseline-477B1CZ_.js} +1 -1
- package/dist/baseline-D9ihb-wk.js +2 -0
- package/dist/{baseline-D2qWmUC6.js → baseline-DrFh7joZ.js} +15 -4
- package/dist/baseline-wyJsSIFQ.js +127 -0
- package/dist/cache-D4dOIuOi.js +219 -0
- package/dist/{checklist-BtgkxMEa.js → checklist-Gx2g3LFC.js} +6 -6
- package/dist/cli/index.js +103 -147
- package/dist/{collect-Cu1q9NTB.js → collect-BJYk7_pJ.js} +1 -1
- package/dist/{command-CZKp9Wi_.js → command-BGGMf4vn.js} +35 -8
- package/dist/countries-DRTBubeE.js +25 -0
- package/dist/countries-Dg0BdytB.js +156 -0
- package/dist/coverage-GvaMpV64.js +3 -0
- package/dist/{coverage-BD2_CYns.js → coverage-zdzgSKjz.js} +4 -286
- package/dist/{crawl-BHkJmUkA.js → crawl-DwdqiljK.js} +5 -3
- package/dist/criteria-CnPJKGeb.js +286 -0
- package/dist/{load-vZdV_fD1.js → define-Ctf2uOEh.js} +47 -95
- package/dist/eleventy/index.d.ts +1 -1
- package/dist/eleventy/index.js +1 -1
- package/dist/entry-CjqjrUBY.js +174 -0
- package/dist/{html-Bmh7X_sM.js → html-whingnfj.js} +9 -5
- package/dist/index.d.ts +61 -5
- package/dist/index.js +3 -2
- package/dist/init-CPbFVMuk.js +293 -0
- package/dist/jsdom-BUYuVJJm.js +3 -0
- package/dist/{jsdom-CQar6OQS.js → jsdom-CsW_xVcA.js} +11 -12
- package/dist/{json-HJDgJp09.js → json-CyLmvF5P.js} +1 -1
- package/dist/{json-PNg6BeXp.js → json-SGCgxSPT.js} +4 -3
- package/dist/load-CH-ltdlq.js +99 -0
- package/dist/load-D7lBeOsq.js +2 -0
- package/dist/nuxt/index.d.ts +1 -1
- package/dist/nuxt/index.js +1 -1
- package/dist/pages-DxY5Z0gl.js +300 -0
- package/dist/{playwright-C-miJP2b.js → playwright-ukCr_5o3.js} +1 -1
- package/dist/{pool-dkexq5xo.js → pool-B4tEUa2S.js} +6 -2
- package/dist/{project-MFrXcw1M.js → project-BLFdCbOq.js} +1 -1
- package/dist/{project-CzOnkLH6.js → project-v2PoRw70.js} +18 -1
- package/dist/{completeness-Dwq3CPB3.js → remediation-Bbs4KcX1.js} +72 -42
- package/dist/{render-CtsqR0k-.js → render-C6zYfaba.js} +69 -7
- package/dist/{result-DfUru6y_.js → result-B7_zVxAX.js} +1 -1
- package/dist/result-CRmjjoAA.js +2 -0
- package/dist/{review-CdMK2GpQ.js → review-Bz0fO9_I.js} +9 -1
- package/dist/{review-DIbOTmOM.js → review-a-2ghjQ5.js} +1 -1
- package/dist/{routes-CmdRUuOs.js → routes-CSctpS1P.js} +1 -1
- package/dist/{run-YiqyQA2b.d.ts → run-BK2blxMI.d.ts} +8 -0
- package/dist/{run-D7hdVXLA.js → run-DzVEOkiF.js} +6 -2
- package/dist/{sarif-BKvq_AUm.js → sarif-9BAgNiOa.js} +5 -3
- package/dist/site-BHMtf3q2.js +72 -0
- package/dist/start-DzOM0p6I.js +101 -0
- package/dist/statement/templates/at.de.md +14 -0
- package/dist/statement/templates/at.en.md +14 -0
- package/dist/statement/templates/be.de.md +148 -0
- package/dist/statement/templates/be.en.md +142 -0
- package/dist/statement/templates/be.fr.md +146 -0
- package/dist/statement/templates/be.nl.md +147 -0
- package/dist/statement/templates/ch.de.md +14 -0
- package/dist/statement/templates/ch.en.md +14 -0
- package/dist/statement/templates/cz.cs.md +137 -0
- package/dist/statement/templates/cz.en.md +139 -0
- package/dist/statement/templates/de.de.md +14 -0
- package/dist/statement/templates/de.en.md +14 -0
- package/dist/statement/templates/dk.da.md +141 -0
- package/dist/statement/templates/dk.en.md +141 -0
- package/dist/statement/templates/es.en.md +14 -0
- package/dist/statement/templates/es.es.md +15 -0
- package/dist/statement/templates/fi.en.md +139 -0
- package/dist/statement/templates/fi.fi.md +141 -0
- package/dist/statement/templates/fr.en.md +14 -0
- package/dist/statement/templates/fr.fr.md +15 -0
- package/dist/statement/templates/ie.en.md +144 -0
- package/dist/statement/templates/it.en.md +14 -0
- package/dist/statement/templates/it.it.md +15 -0
- package/dist/statement/templates/nl.en.md +14 -0
- package/dist/statement/templates/nl.nl.md +15 -0
- package/dist/statement/templates/pl.en.md +143 -0
- package/dist/statement/templates/pl.pl.md +144 -0
- package/dist/statement/templates/pt.en.md +142 -0
- package/dist/statement/templates/pt.pt.md +145 -0
- package/dist/statement/templates/se.en.md +139 -0
- package/dist/statement/templates/se.sv.md +142 -0
- package/dist/vite/index.d.ts +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/watch-B2RoUbo0.js +122 -0
- package/dist/webpack/index.d.ts +1 -1
- package/dist/webpack/index.js +1 -1
- package/dist/{worksheet-eUjwYLxC.js → worksheet-B_kQ1pxq.js} +3 -2
- package/package.json +4 -3
- package/dist/audit-DK2StT1_.js +0 -2
- package/dist/coverage-7bQqWNfN.js +0 -2
- package/dist/init-BjKYttxc.js +0 -119
- package/dist/jsdom-DMvU2h-f.js +0 -3
- package/dist/load-Bc_xDGAh.js +0 -2
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
//#region src/config/countries.ts
|
|
2
|
+
const COUNTRY_INFO = {
|
|
3
|
+
AT: {
|
|
4
|
+
name: "Austria",
|
|
5
|
+
languages: ["de", "en"],
|
|
6
|
+
siteLocale: "de-AT",
|
|
7
|
+
statute: "Barrierefreiheitsgesetz (BaFG)",
|
|
8
|
+
authority: "Sozialministeriumservice"
|
|
9
|
+
},
|
|
10
|
+
BE: {
|
|
11
|
+
name: "Belgium",
|
|
12
|
+
languages: [
|
|
13
|
+
"fr",
|
|
14
|
+
"nl",
|
|
15
|
+
"de",
|
|
16
|
+
"en"
|
|
17
|
+
],
|
|
18
|
+
siteLocale: "fr-BE",
|
|
19
|
+
statute: "Loi du 5 novembre 2023 / wet van 5 november 2023 (Code de droit économique)",
|
|
20
|
+
authority: "SPF Économie / FOD Economie, Economic Inspection",
|
|
21
|
+
unverified: true
|
|
22
|
+
},
|
|
23
|
+
CH: {
|
|
24
|
+
name: "Switzerland",
|
|
25
|
+
languages: ["de", "en"],
|
|
26
|
+
siteLocale: "de-CH",
|
|
27
|
+
statute: "Behindertengleichstellungsgesetz (BehiG), not an EAA transposition",
|
|
28
|
+
authority: "the courts; there is no supervisory body"
|
|
29
|
+
},
|
|
30
|
+
CZ: {
|
|
31
|
+
name: "Czechia",
|
|
32
|
+
languages: ["cs", "en"],
|
|
33
|
+
siteLocale: "cs-CZ",
|
|
34
|
+
statute: "Zákon č. 424/2023 Sb., o požadavcích na přístupnost některých výrobků a služeb",
|
|
35
|
+
authority: "Česká obchodní inspekce (ČOI)",
|
|
36
|
+
unverified: true
|
|
37
|
+
},
|
|
38
|
+
DE: {
|
|
39
|
+
name: "Germany",
|
|
40
|
+
languages: ["de", "en"],
|
|
41
|
+
siteLocale: "de-DE",
|
|
42
|
+
statute: "Barrierefreiheitsstärkungsgesetz (BFSG)",
|
|
43
|
+
authority: "Marktüberwachungsstelle der Länder (MLBF)"
|
|
44
|
+
},
|
|
45
|
+
DK: {
|
|
46
|
+
name: "Denmark",
|
|
47
|
+
languages: ["da", "en"],
|
|
48
|
+
siteLocale: "da-DK",
|
|
49
|
+
statute: "Lov nr. 801 af 7. juni 2022 om tilgængelighedskrav for produkter og tjenester",
|
|
50
|
+
authority: "Sikkerhedsstyrelsen for e-commerce; supervision is split",
|
|
51
|
+
unverified: true
|
|
52
|
+
},
|
|
53
|
+
ES: {
|
|
54
|
+
name: "Spain",
|
|
55
|
+
languages: ["es", "en"],
|
|
56
|
+
siteLocale: "es-ES",
|
|
57
|
+
statute: "Ley 11/2023, de 8 de mayo",
|
|
58
|
+
authority: "the competent market surveillance authority, usually the autonomous community's consumer body"
|
|
59
|
+
},
|
|
60
|
+
FI: {
|
|
61
|
+
name: "Finland",
|
|
62
|
+
languages: ["fi", "en"],
|
|
63
|
+
siteLocale: "fi-FI",
|
|
64
|
+
statute: "Laki digitaalisten palvelujen tarjoamisesta (306/2019), as amended",
|
|
65
|
+
authority: "Liikenne- ja viestintävirasto Traficom",
|
|
66
|
+
unverified: true
|
|
67
|
+
},
|
|
68
|
+
FR: {
|
|
69
|
+
name: "France",
|
|
70
|
+
languages: ["fr", "en"],
|
|
71
|
+
siteLocale: "fr-FR",
|
|
72
|
+
statute: "Ordonnance n° 2023-859, and art. 47 of loi n° 2005-102",
|
|
73
|
+
authority: "Défenseur des droits, and Arcom"
|
|
74
|
+
},
|
|
75
|
+
IE: {
|
|
76
|
+
name: "Ireland",
|
|
77
|
+
languages: ["en"],
|
|
78
|
+
siteLocale: "en-IE",
|
|
79
|
+
statute: "S.I. No. 636 of 2023",
|
|
80
|
+
authority: "Competition and Consumer Protection Commission (CCPC)",
|
|
81
|
+
unverified: true
|
|
82
|
+
},
|
|
83
|
+
IT: {
|
|
84
|
+
name: "Italy",
|
|
85
|
+
languages: ["it", "en"],
|
|
86
|
+
siteLocale: "it-IT",
|
|
87
|
+
statute: "D.lgs. 27 maggio 2022, n. 82 (legge Stanca)",
|
|
88
|
+
authority: "AgID"
|
|
89
|
+
},
|
|
90
|
+
NL: {
|
|
91
|
+
name: "Netherlands",
|
|
92
|
+
languages: ["nl", "en"],
|
|
93
|
+
siteLocale: "nl-NL",
|
|
94
|
+
statute: "Implementatiewet toegankelijkheidsvoorschriften producten en diensten",
|
|
95
|
+
authority: "ACM for services, RDI for products"
|
|
96
|
+
},
|
|
97
|
+
PL: {
|
|
98
|
+
name: "Poland",
|
|
99
|
+
languages: ["pl", "en"],
|
|
100
|
+
siteLocale: "pl-PL",
|
|
101
|
+
statute: "Ustawa z dnia 26 kwietnia 2024 r. (Dz.U. 2024 poz. 731)",
|
|
102
|
+
authority: "Prezes Zarządu PFRON",
|
|
103
|
+
unverified: true
|
|
104
|
+
},
|
|
105
|
+
PT: {
|
|
106
|
+
name: "Portugal",
|
|
107
|
+
languages: ["pt", "en"],
|
|
108
|
+
siteLocale: "pt-PT",
|
|
109
|
+
statute: "Decreto-Lei n.º 82/2022, de 6 de dezembro",
|
|
110
|
+
authority: "ANACOM for e-commerce services",
|
|
111
|
+
unverified: true
|
|
112
|
+
},
|
|
113
|
+
SE: {
|
|
114
|
+
name: "Sweden",
|
|
115
|
+
languages: ["sv", "en"],
|
|
116
|
+
siteLocale: "sv-SE",
|
|
117
|
+
statute: "Lag (2023:254) om vissa produkters och tjänsters tillgänglighet",
|
|
118
|
+
authority: "Post- och telestyrelsen (PTS)",
|
|
119
|
+
unverified: true
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* A country from what somebody typed: the code in any case, or the English name.
|
|
124
|
+
*
|
|
125
|
+
* Undefined rather than a default. A statement is a legal document under one
|
|
126
|
+
* country's law, and quietly substituting another country for a typo is how
|
|
127
|
+
* somebody ends up publishing an Austrian statement for a Polish shop.
|
|
128
|
+
*/
|
|
129
|
+
function findCountry(value) {
|
|
130
|
+
const wanted = value.trim().toLowerCase();
|
|
131
|
+
if (wanted === "") return void 0;
|
|
132
|
+
for (const [code, info] of Object.entries(COUNTRY_INFO)) if (code.toLowerCase() === wanted || info.name.toLowerCase() === wanted) return code;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* The country a site's language tag points at, when it points at one.
|
|
136
|
+
*
|
|
137
|
+
* The region decides where there is one: `de-AT` is Austria, `fr-BE` is
|
|
138
|
+
* Belgium, and a region with no country listed here gives nothing. A bare language counts only where that language's own country is
|
|
139
|
+
* listed, so `pl` is Poland and `fr` is France. English has no such country, so
|
|
140
|
+
* `en` gives nothing. This is a default for `init` to offer, not an answer.
|
|
141
|
+
* Which country's law applies depends on where the business sells, and a site's
|
|
142
|
+
* language only suggests that.
|
|
143
|
+
*/
|
|
144
|
+
function countryForLocale(tag) {
|
|
145
|
+
const [language, region] = tag.toLowerCase().split("-");
|
|
146
|
+
if (language === void 0) return void 0;
|
|
147
|
+
const codes = Object.keys(COUNTRY_INFO);
|
|
148
|
+
if (region !== void 0) return codes.find((code) => code.toLowerCase() === region);
|
|
149
|
+
const own = codes.find((code) => COUNTRY_INFO[code].siteLocale.toLowerCase() === `${language}-${language}`);
|
|
150
|
+
if (own !== void 0) return own;
|
|
151
|
+
if (language === "en") return void 0;
|
|
152
|
+
const speakers = codes.filter((code) => COUNTRY_INFO[code].siteLocale.startsWith(`${language}-`));
|
|
153
|
+
return speakers.length === 1 ? speakers[0] : void 0;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
export { countryForLocale as n, findCountry as r, COUNTRY_INFO as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as WCAG22_AA_CRITERIA } from "./criteria-CnPJKGeb.js";
|
|
2
|
+
import { n as DEFAULT_TAGS, p as successCriteria, r as ENGINE_BLIND_RULES } from "./result-B7_zVxAX.js";
|
|
3
|
+
import { s as criterionReview } from "./review-Bz0fO9_I.js";
|
|
3
4
|
import axe from "axe-core";
|
|
4
5
|
//#region src/audit/manual.ts
|
|
5
6
|
/**
|
|
@@ -138,289 +139,6 @@ function manualCheckFor(ruleId) {
|
|
|
138
139
|
//#endregion
|
|
139
140
|
//#region src/audit/coverage.ts
|
|
140
141
|
/**
|
|
141
|
-
* WCAG 2.2 at Levels A and AA, which is what this tool audits against.
|
|
142
|
-
*
|
|
143
|
-
* 4.1.1 Parsing is deliberately absent: it was removed in WCAG 2.2 and counting
|
|
144
|
-
* it would inflate the denominator with a criterion nobody has to meet.
|
|
145
|
-
*/
|
|
146
|
-
const WCAG22_AA_CRITERIA = [
|
|
147
|
-
{
|
|
148
|
-
number: "1.1.1",
|
|
149
|
-
title: "Non-text Content",
|
|
150
|
-
level: "A"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
number: "1.2.1",
|
|
154
|
-
title: "Audio-only and Video-only (Prerecorded)",
|
|
155
|
-
level: "A"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
number: "1.2.2",
|
|
159
|
-
title: "Captions (Prerecorded)",
|
|
160
|
-
level: "A"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
number: "1.2.3",
|
|
164
|
-
title: "Audio Description or Media Alternative (Prerecorded)",
|
|
165
|
-
level: "A"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
number: "1.2.4",
|
|
169
|
-
title: "Captions (Live)",
|
|
170
|
-
level: "AA"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
number: "1.2.5",
|
|
174
|
-
title: "Audio Description (Prerecorded)",
|
|
175
|
-
level: "AA"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
number: "1.3.1",
|
|
179
|
-
title: "Info and Relationships",
|
|
180
|
-
level: "A"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
number: "1.3.2",
|
|
184
|
-
title: "Meaningful Sequence",
|
|
185
|
-
level: "A"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
number: "1.3.3",
|
|
189
|
-
title: "Sensory Characteristics",
|
|
190
|
-
level: "A"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
number: "1.3.4",
|
|
194
|
-
title: "Orientation",
|
|
195
|
-
level: "AA"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
number: "1.3.5",
|
|
199
|
-
title: "Identify Input Purpose",
|
|
200
|
-
level: "AA"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
number: "1.4.1",
|
|
204
|
-
title: "Use of Color",
|
|
205
|
-
level: "A"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
number: "1.4.2",
|
|
209
|
-
title: "Audio Control",
|
|
210
|
-
level: "A"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
number: "1.4.3",
|
|
214
|
-
title: "Contrast (Minimum)",
|
|
215
|
-
level: "AA"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
number: "1.4.4",
|
|
219
|
-
title: "Resize Text",
|
|
220
|
-
level: "AA"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
number: "1.4.5",
|
|
224
|
-
title: "Images of Text",
|
|
225
|
-
level: "AA"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
number: "1.4.10",
|
|
229
|
-
title: "Reflow",
|
|
230
|
-
level: "AA"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
number: "1.4.11",
|
|
234
|
-
title: "Non-text Contrast",
|
|
235
|
-
level: "AA"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
number: "1.4.12",
|
|
239
|
-
title: "Text Spacing",
|
|
240
|
-
level: "AA"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
number: "1.4.13",
|
|
244
|
-
title: "Content on Hover or Focus",
|
|
245
|
-
level: "AA"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
number: "2.1.1",
|
|
249
|
-
title: "Keyboard",
|
|
250
|
-
level: "A"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
number: "2.1.2",
|
|
254
|
-
title: "No Keyboard Trap",
|
|
255
|
-
level: "A"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
number: "2.1.4",
|
|
259
|
-
title: "Character Key Shortcuts",
|
|
260
|
-
level: "A"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
number: "2.2.1",
|
|
264
|
-
title: "Timing Adjustable",
|
|
265
|
-
level: "A"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
number: "2.2.2",
|
|
269
|
-
title: "Pause, Stop, Hide",
|
|
270
|
-
level: "A"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
number: "2.3.1",
|
|
274
|
-
title: "Three Flashes or Below Threshold",
|
|
275
|
-
level: "A"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
number: "2.4.1",
|
|
279
|
-
title: "Bypass Blocks",
|
|
280
|
-
level: "A"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
number: "2.4.2",
|
|
284
|
-
title: "Page Titled",
|
|
285
|
-
level: "A"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
number: "2.4.3",
|
|
289
|
-
title: "Focus Order",
|
|
290
|
-
level: "A"
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
number: "2.4.4",
|
|
294
|
-
title: "Link Purpose (In Context)",
|
|
295
|
-
level: "A"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
number: "2.4.5",
|
|
299
|
-
title: "Multiple Ways",
|
|
300
|
-
level: "AA"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
number: "2.4.6",
|
|
304
|
-
title: "Headings and Labels",
|
|
305
|
-
level: "AA"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
number: "2.4.7",
|
|
309
|
-
title: "Focus Visible",
|
|
310
|
-
level: "AA"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
number: "2.4.11",
|
|
314
|
-
title: "Focus Not Obscured (Minimum)",
|
|
315
|
-
level: "AA"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
number: "2.5.1",
|
|
319
|
-
title: "Pointer Gestures",
|
|
320
|
-
level: "A"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
number: "2.5.2",
|
|
324
|
-
title: "Pointer Cancellation",
|
|
325
|
-
level: "A"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
number: "2.5.3",
|
|
329
|
-
title: "Label in Name",
|
|
330
|
-
level: "A"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
number: "2.5.4",
|
|
334
|
-
title: "Motion Actuation",
|
|
335
|
-
level: "A"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
number: "2.5.7",
|
|
339
|
-
title: "Dragging Movements",
|
|
340
|
-
level: "AA"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
number: "2.5.8",
|
|
344
|
-
title: "Target Size (Minimum)",
|
|
345
|
-
level: "AA"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
number: "3.1.1",
|
|
349
|
-
title: "Language of Page",
|
|
350
|
-
level: "A"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
number: "3.1.2",
|
|
354
|
-
title: "Language of Parts",
|
|
355
|
-
level: "AA"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
number: "3.2.1",
|
|
359
|
-
title: "On Focus",
|
|
360
|
-
level: "A"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
number: "3.2.2",
|
|
364
|
-
title: "On Input",
|
|
365
|
-
level: "A"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
number: "3.2.3",
|
|
369
|
-
title: "Consistent Navigation",
|
|
370
|
-
level: "AA"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
number: "3.2.4",
|
|
374
|
-
title: "Consistent Identification",
|
|
375
|
-
level: "AA"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
number: "3.2.6",
|
|
379
|
-
title: "Consistent Help",
|
|
380
|
-
level: "A"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
number: "3.3.1",
|
|
384
|
-
title: "Error Identification",
|
|
385
|
-
level: "A"
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
number: "3.3.2",
|
|
389
|
-
title: "Labels or Instructions",
|
|
390
|
-
level: "A"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
number: "3.3.3",
|
|
394
|
-
title: "Error Suggestion",
|
|
395
|
-
level: "AA"
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
number: "3.3.4",
|
|
399
|
-
title: "Error Prevention (Legal, Financial, Data)",
|
|
400
|
-
level: "AA"
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
number: "3.3.7",
|
|
404
|
-
title: "Redundant Entry",
|
|
405
|
-
level: "A"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
number: "3.3.8",
|
|
409
|
-
title: "Accessible Authentication (Minimum)",
|
|
410
|
-
level: "AA"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
number: "4.1.2",
|
|
414
|
-
title: "Name, Role, Value",
|
|
415
|
-
level: "A"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
number: "4.1.3",
|
|
419
|
-
title: "Status Messages",
|
|
420
|
-
level: "AA"
|
|
421
|
-
}
|
|
422
|
-
];
|
|
423
|
-
/**
|
|
424
142
|
* Rules axe-core would run under these tags, mapped to the criteria they cover.
|
|
425
143
|
*
|
|
426
144
|
* Experimental rules are excluded, matching `blindRulesInScope`: axe-core leaves
|
|
@@ -556,4 +274,4 @@ function reviewSummary(coverage) {
|
|
|
556
274
|
return `${parts.join("; ")}. This is a claim by a person, not a measurement.`;
|
|
557
275
|
}
|
|
558
276
|
//#endregion
|
|
559
|
-
export {
|
|
277
|
+
export { manualCheckFor as a, rulesByCriterion as i, coverageSummary as n, understandingUrl as o, reviewSummary as r, buildCoverage as t };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { a as stripBom } from "./collect-
|
|
1
|
+
import { a as stripBom } from "./collect-BJYk7_pJ.js";
|
|
2
|
+
/** Per-request timeout. */
|
|
3
|
+
const DEFAULT_REQUEST_TIMEOUT_MS = 15e3;
|
|
2
4
|
/** Requests in flight at once. Politeness, not throughput. */
|
|
3
5
|
const REQUEST_CONCURRENCY = 4;
|
|
4
6
|
/**
|
|
@@ -244,7 +246,7 @@ async function crawlSite(entry, options = {}) {
|
|
|
244
246
|
const maxPages = options.maxPages ?? 200;
|
|
245
247
|
const maxDepth = options.maxDepth ?? 3;
|
|
246
248
|
const timeoutMs = options.timeoutMs ?? 15e3;
|
|
247
|
-
const maxBodyBytes = options.maxBodyBytes ??
|
|
249
|
+
const maxBodyBytes = options.maxBodyBytes ?? 33554432;
|
|
248
250
|
const failures = [];
|
|
249
251
|
const robots = options.ignoreRobots ? void 0 : await fetchSiteFile(entry, impl, "/robots.txt", timeoutMs, maxBodyBytes, options.headers);
|
|
250
252
|
const blocked = robots === void 0 ? [] : disallowedPaths(robots);
|
|
@@ -349,4 +351,4 @@ function byIdentity(pages) {
|
|
|
349
351
|
}).sort((a, b) => a.relativePath.localeCompare(b.relativePath));
|
|
350
352
|
}
|
|
351
353
|
//#endregion
|
|
352
|
-
export { CrawlError, collapsedOnto, crawlSite, parseEntryUrl };
|
|
354
|
+
export { CrawlError, DEFAULT_REQUEST_TIMEOUT_MS, MAX_BODY_BYTES, collapsedOnto, crawlSite, parseEntryUrl };
|