Returns a deep link to the W3C WCAG 2.1 specification entry for one or more success criteria.
Arguments
- criterion
Character vector of success-criterion numbers (e.g.,
"1.4.3"). Recognised values are the chart-relevant subset returned bya11y_rubric().
Value
Character vector of URLs the same length as criterion. Returns
the spec root URL for unrecognised values.
Examples
a11y_wcag_url("1.4.3")
#> [1] "https://www.w3.org/TR/WCAG21/#contrast-minimum"
a11y_wcag_url(c("1.1.1", "2.4.7", "4.1.3"))
#> [1] "https://www.w3.org/TR/WCAG21/#non-text-content"
#> [2] "https://www.w3.org/TR/WCAG21/#focus-visible"
#> [3] "https://www.w3.org/TR/WCAG21/#status-messages"