Skip to content

Instantly share code, notes, and snippets.

View Zauberbutter's full-sized avatar
🧈

Zauberbutter

🧈
View GitHub Profile
@Zauberbutter
Zauberbutter / create-wcag-information.js
Last active November 1, 2021 13:31
Create WCAG information about HTMLCS issues
import { getLinkToCriterion, getLinkToTechnique } from 'wcag-reference';
/**
* Parses the wcag information from the pa11y HTML_CS runner code string.
*
* @url https://github.com/pa11y/pa11y/wiki/HTML-CodeSniffer-Rules
* @url https://squizlabs.github.io/HTML_CodeSniffer/Standards/WCAG2/
*
* @param issue
* @return The pa11y-Issue with updated tags.