@accesslint/core 0.6.3 → 0.6.5
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 +21 -0
- package/README.md +134 -77
- package/dist/index.cjs +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.js +8 -5
- package/dist/rules/structure/list-rules.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2489,15 +2489,18 @@ const fa = {
|
|
|
2489
2489
|
guidance: "Definition terms (<dt>) and definitions (<dd>) only have semantic meaning inside a definition list (<dl>). Outside of <dl>, they're treated as generic text. Wrap related <dt> and <dd> pairs in a <dl> element to convey the term/definition relationship to assistive technologies.",
|
|
2490
2490
|
prompt: "Explain how to properly structure this term/definition content.",
|
|
2491
2491
|
run(t) {
|
|
2492
|
+
var e;
|
|
2492
2493
|
const a = [];
|
|
2493
|
-
for (const
|
|
2494
|
-
|
|
2494
|
+
for (const n of t.querySelectorAll("dt, dd")) {
|
|
2495
|
+
const i = n.parentElement, s = i == null ? void 0 : i.tagName.toLowerCase();
|
|
2496
|
+
(!i || s !== "dl" && !(s === "div" && ((e = i.parentElement) == null ? void 0 : e.tagName.toLowerCase()) === "dl")) && a.push({
|
|
2495
2497
|
ruleId: "accesslint-048",
|
|
2496
|
-
selector: p(
|
|
2497
|
-
html: m(
|
|
2498
|
+
selector: p(n),
|
|
2499
|
+
html: m(n),
|
|
2498
2500
|
impact: "serious",
|
|
2499
|
-
message: `<${
|
|
2501
|
+
message: `<${n.tagName.toLowerCase()}> is not contained in a <dl>.`
|
|
2500
2502
|
});
|
|
2503
|
+
}
|
|
2501
2504
|
return a;
|
|
2502
2505
|
}
|
|
2503
2506
|
}, Fa = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-rules.d.ts","sourceRoot":"","sources":["../../../src/rules/structure/list-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAmB,MAAM,UAAU,CAAC;AAkBtD,eAAO,MAAM,IAAI,MAAmC,CAAC;AAErD,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"list-rules.d.ts","sourceRoot":"","sources":["../../../src/rules/structure/list-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAmB,MAAM,UAAU,CAAC;AAkBtD,eAAO,MAAM,IAAI,MAAmC,CAAC;AAErD,eAAO,MAAM,MAAM,EAAE,IA0BpB,CAAC;AAeF,eAAO,MAAM,cAAc,MAA6C,CAAC;AAEzE,eAAO,MAAM,QAAQ,EAAE,IA8BtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@accesslint/core",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Pure accessibility rule engine — WCAG audit with zero browser dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test": "vitest run",
|
|
23
23
|
"bench": "vitest bench",
|
|
24
24
|
"test:memory": "vitest run --config vite.memory.config.ts",
|
|
25
|
-
"act:download": "npx tsx src/act/download-fixtures.ts",
|
|
25
|
+
"act:download": "scripts/download-act-fixtures.sh && npx tsx src/act/download-fixtures.ts",
|
|
26
26
|
"test:act": "vitest run src/act/act.test.ts",
|
|
27
27
|
"act:check": "npx tsx src/act/check-conformance.ts",
|
|
28
28
|
"test:browser": "npx playwright test",
|