a11y-toolkit: Deterministic safe auto-fixes
a11y_autofixApplies deterministic safe HTML accessibility fixes for WCAG 1.4.4 zoom and 1.3.5 autocomplete, filling missing lang and title. Returns fixed_html plus applied and not_applied lists with remediation.
Instructions
DETERMINISTIC safe auto-fixes applied to HTML — the honest anti-overlay: a short closed list of fixes where the correct answer is unique (unblock viewport zoom 1.4.4, add the exact autocomplete token 1.3.5, fill missing html lang and empty title when provided). Everything requiring judgment (alt text, contrast, accessible names) is NOT touched — it returns not_applied with the reason and remediation instead. Returns fixed_html + applied + not_applied. — Only the closed allowlist of provably safe fixes; judgment fixes come back as not_applied with remediation. Returns JSON: {fixed_html, applied [{fix, …}], not_applied [{issue, remediation}]} — writes a file only when output_path is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL context for the report metadata (default: "(html)") | |
| html | Yes | raw HTML to fix | |
| lang | No | only if provided and <html> lacks lang | |
| title | No | only if provided and <title> is empty | |
| form_errors | No | inject the accessible form-error layer into forms without their own handling (default true) |