Skip to main content

check_consistent_help

Function check_consistent_help 

Source
pub fn check_consistent_help(html: &str, issues: &mut Vec<AccessibilityIssue>)
Expand description

WCAG 2.2 — 3.2.6 Consistent Help (Level A).

Build-time verification is partial — full conformance requires cross-page comparison of help-mechanism placement. This check emits an info note when a page contains no detectable help link (anchor text matching help, contact, support, faq). Cross-page placement consistency is left to a runtime audit and human review — that’s why crate::CriterionStatus::Manual is used for this criterion in the compliance matrix rather than wiring this helper into crate::check_page directly (it would be too noisy on every clean page that simply omits a help link). Callers that want cross-page analysis can run this themselves across every page’s HTML and look for at least one match site-wide.