Class: A11y::Lint::Rules::InputMissingAutocomplete
- Defined in:
- lib/a11y/lint/rules/perceivable/input_missing_autocomplete.rb
Overview
Checks that <input> elements include an autocomplete attribute (WCAG 1.3.5). www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html
Constant Summary collapse
- EXCLUDED_TYPES =
%w[ button checkbox file hidden image radio reset submit ].freeze
Instance Method Summary collapse
Methods inherited from NodeRule
Constructor Details
This class inherits a constructor from A11y::Lint::NodeRule
Instance Method Details
#check ⇒ Object
21 22 23 24 25 |
# File 'lib/a11y/lint/rules/perceivable/input_missing_autocomplete.rb', line 21 def check return unless an_input_missing_autocomplete? "input is missing an autocomplete attribute (WCAG 1.3.5)" end |