a11y-toolkit: W3C Nu validation
a11y_html_validateValidates raw HTML or page URLs via the W3C Nu Html Checker, revealing structural, doctype, encoding, alt, lang, and role WCAG issues. Options for self-hosted instances protect sensitive content.
Instructions
The W3C's own parser as a toolkit mode: checks a URL or raw HTML against the Nu Html Checker (validator.w3.org/nu) — doctype, encoding, structural validity, plus alt/lang/role issues from the authoritative source, mapped to WCAG criteria where they overlap. PRIVACY: html mode POSTs the document to the W3C service (url mode shares only the URL, like a11y_audit_url); self-hosted vnu instances supported via base_url for sensitive content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page URL to validate (shares the URL with the W3C service) | |
| html | No | Raw HTML to validate — POSTs the content to validator.w3.org/nu; use url or a self-hosted instance for sensitive pages | |
| lang | No | Output language (en default) | |
| base_url | No | Base URL of a self-hosted vnu instance (docker ghcr.io/validator/validator) instead of the public W3C service |