a11y.css icon indicating copy to clipboard operation
a11y.css copied to clipboard

autocomplete attribute, and its values

Open ffoodd opened this issue 3 years ago • 1 comments

autocomplete inputs when possible is now required in WCAG 2.1 1.3.1 SC and RGAA 4.1 11.13 criteria, with a predefined set of values from HTML specs.

Two checks in my mind:

  • an error for invalid attribute values,
  • a warning for inputs without [autocomplete].

ffoodd avatar Jan 03 '22 10:01 ffoodd

HTML now allows for this https://html.spec.whatwg.org/multipage/forms.html#enabling-client-side-automatic-filling-of-form-controls
autocomplete="billing tel".

WCAG references HTML LS : https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofilling-form-controls:-the-autocomplete-attribute where some value examples have 3 parts.

The predefined part is always at the end so $= selector should be fine.

PhilippeVay avatar Nov 07 '22 11:11 PhilippeVay