Class: A11y::Lint::Rules::AreaMissingAlt
- Defined in:
- lib/a11y/lint/rules/perceivable/area_missing_alt.rb
Overview
Checks that area tags include an alt attribute (WCAG 1.1.1). www.w3.org/WAI/WCAG21/Techniques/html/H24
Instance Method Summary collapse
Methods inherited from NodeRule
Constructor Details
This class inherits a constructor from A11y::Lint::NodeRule
Instance Method Details
#check ⇒ Object
9 10 11 12 13 |
# File 'lib/a11y/lint/rules/perceivable/area_missing_alt.rb', line 9 def check return unless an_area_without_an_alt_attribute? "area tag is missing an alt attribute (WCAG 1.1.1)" end |