Skip to main content

check_page

Function check_page 

Source
pub fn check_page(html: &str) -> Vec<AccessibilityIssue>
Expand description

Runs all WCAG checks on a single HTML page.

This is the crate’s main entry point: pass it the full text of one rendered HTML page and it returns every issue found. It performs no I/O — callers are responsible for reading the file (or otherwise obtaining the HTML string) and for aggregating per-page results into a report (see AccessibilityReport) if desired.