@accesslint/core 0.6.2 → 0.6.4

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/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 e of t.querySelectorAll("dt, dd"))
2494
- (!e.parentElement || e.parentElement.tagName.toLowerCase() !== "dl") && a.push({
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(e),
2497
- html: m(e),
2498
+ selector: p(n),
2499
+ html: m(n),
2498
2500
  impact: "serious",
2499
- message: `<${e.tagName.toLowerCase()}> is not contained in a <dl>.`
2501
+ message: `<${n.tagName.toLowerCase()}> is not contained in a <dl>.`
2500
2502
  });
2503
+ }
2501
2504
  return a;
2502
2505
  }
2503
2506
  }, Fa = {
@@ -2765,7 +2768,7 @@ const Wa = {
2765
2768
  }, _a = {
2766
2769
  id: "accesslint-008",
2767
2770
  actRuleIds: ["bisz58"],
2768
- wcag: ["2.2.1", "3.2.5"],
2771
+ wcag: ["2.2.1"],
2769
2772
  level: "A",
2770
2773
  description: "Meta refresh must not be used with a delay (no exceptions).",
2771
2774
  guidance: "Automatic page refreshes and delayed redirects disorient users. Instant redirects (delay=0) are acceptable, but any positive delay is not. Use server-side redirects instead.",
@@ -2796,7 +2799,7 @@ const Wa = {
2796
2799
  }, Ga = {
2797
2800
  id: "accesslint-007",
2798
2801
  actRuleIds: ["bc659a"],
2799
- wcag: ["2.2.1", "2.2.4", "3.2.5"],
2802
+ wcag: ["2.2.1"],
2800
2803
  level: "A",
2801
2804
  description: "Meta refresh must not redirect or refresh automatically.",
2802
2805
  guidance: "Automatic page refreshes or redirects can disorient users, especially those using screen readers or with cognitive disabilities. They may lose their place or not have time to read content. If a redirect is needed, use a server-side redirect (HTTP 301/302) instead. For timed refreshes, provide user controls.",
@@ -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,IAwBpB,CAAC;AAeF,eAAO,MAAM,cAAc,MAA6C,CAAC;AAEzE,eAAO,MAAM,QAAQ,EAAE,IA8BtB,CAAC"}
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.2",
3
+ "version": "0.6.4",
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",