kia11y v0.1.0 Kia11y.Checker

Provides methods to validate A11Y on the AccessLint Service A11Y Checker.

Summary

Functions

Validates the given URL on the AccessLint Service A11Y Checker

Functions

check(url, options \\ [])

Validates the given URL on the AccessLint Service A11Y Checker.

Options:

  • Will use by default the AccessLint Service demo at https://accesslint-service-demo.herokuapp.com/, this can and should be customized to use your own instances, with the checker_urls option. This is expected to be an array of strings, Kia11y will pick a random one for each check.

Examples

iex> { :ok, %{ “violations” => violations } } = Kia11y.check(“http://validationhell.com”) iex> length(violations) 3 iex> first = List.first(violations) iex> first[“url”] “http://validationhell.com/“ iex> first[“impact”] “critical” iex> first[“help”] “Images must have alternate text” iex> first[ ["body > .navbar.navbar-fixed-top > .navbar-inner > .container-fluid > .brand > img", "body > .container-fluid > .row-fluid > a > .span10 > .hero-unit > div > img"] > img”]