Skip to content

Diligent 0.3.0: new accessibility checks and state law research

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Nov 00:22

New accessibility checks and a first record of state accessibility and privacy law. Eight checks are new (five browser, three source), the SVG naming check is extended, and research-status authorities A70 to A78 are added for seven states and for Title VI. The new checks report needs_review rather than a pass or a fail whenever their evidence cannot settle the question, and every new DOM walk is bounded. The companion binary now has 33 browser checks and 23 source checks. Rules stay at research or draft, so an automated result is still evidence for a person to weigh, not a legal conclusion.

Added

  • Browser checks BRW-LABEL-ASSOC (form label association, WCAG 1.3.1, 3.3.2, 4.1.2), BRW-LIVE-REGION (status and alert regions, 4.1.3), BRW-DRAG-ALTERNATIVE (a single-pointer alternative to dragging, 2.5.7) and BRW-FOCUS-TRAP (focus stays inside a visible aria-modal dialog, 2.4.3). Each has authored fixtures with recorded captures.
  • BRW-REDUCED-MOTION, an advisory check that compares animation and transition durations under prefers-reduced-motion. It never fails and informs no success criterion: motion under reduced motion is WCAG 2.3.3, which is AAA and outside the AA packs.
  • Source checks SRC-AUTOCOMPLETE-REQUIRED (1.3.5), SRC-HEADING-OUTLINE (2.4.6) and SRC-ACCESSIBLE-AUTH (3.3.8). SRC-ACCESSIBLE-AUTH passes a login password field only when it carries autocomplete="current-password" or the form offers a passwordless alternative, reports needs_review otherwise, and skips sign-up fields.
  • SRC-SVG-NAME covers more SVG naming patterns and is listed on WCAG 4.1.2.
  • State accessibility and privacy authorities A70 to A77 (Colorado, California, Texas, Illinois, Minnesota, New York, Massachusetts) and A78 (Title VI and 28 CFR 42.405, recording that the EO 13166 language-access guidance was rescinded), all at research status, with a state overlay table in references/overlays.md.
  • entity_state and entity_type facts on the state and local profile, which select the state authorities.

Changed

  • Rule pack channel support follows the checks that exist: browser support is assisted for 2.4.3, 3.3.2, 4.1.3 and 2.5.7; source support is assisted for 2.4.6 and 3.3.8; SRC-SVG-NAME is listed on 4.1.2; BRW-LABEL-ASSOC replaces the nonexistent SRC-LABEL-ASSOC. 2.3.1 and 2.1.2 list no new check.
  • An advisory check (never_fails) may inform no rule; a check that can fail must still map to one.
  • docs/supported-checks.md counts and cells are recomputed from the packs: 17 (a11y-wcag20-aa), 6 (a11y-wcag21-aa), 4 (a11y-wcag22-aa), 52 in total.
  • The state and local profile claim boundary says state authorities are recorded at research status only, ship no rule pack and support no claim.

Fixed

  • The new checks report pass when their criterion is met, so a compliant page no longer reads as not_tested, and report needs_review instead of pass where the evidence is a heuristic: an aria-label-only control (3.3.2 needs a visible label), a live region whose timing is not observed, a move button matched only by a direction word, an autocomplete name matched by pattern.
  • Keyword and field-name matching uses whole words and tokens: "hotel" is not a phone field, "capacity" is not a city, "Sign up" is not a move control, "incomplete" is not a success message. An autocomplete value passes only when it is a valid token for the field; on, off and invalid values count as missing.
  • BRW-FOCUS-TRAP ignores <dialog open> (a capture cannot tell a modal from a non-modal dialog) and hidden dialogs, which used to fail ordinary pages on every focus stop.
  • BRW-LABEL-ASSOC finds <label for> and wrapping labels; aria-labelledby pointing at a missing id no longer counts as a label.
  • SRC-HEADING-OUTLINE counts a heading's own aria-label and aria-labelledby, and no longer reports a page-level pass for descriptiveness it does not judge.
  • DOM walks are bounded: no recursion over page depth and no quadratic scans. Adversarial tests cover 50,000-deep pages with an accessibility tree, 20,000-wide pages and parent cycles.
  • BRW-DRAG-ALTERNATIVE treats only draggable="true" as draggable.

Known limitations

  • SRC-ACCESSIBLE-AUTH reads only inline onpaste. Paste blocking done by script, and the live sign-in flow, need a person.
  • BRW-LIVE-REGION does not observe when announcements happen, only the region's markup and text.
  • State authorities are research only. They ship no rule pack and support no claim.
  • The issuer of FR 2025-06366 and the current text of 28 CFR 42.405(d)(1) are not yet verified against a primary source.