Description
-
Rule: Autocomplete attribute has valid value
-
URL: https://www.w3.org/WAI/standards-guidelines/act/rules/73f2c2/#attribute-value
-
Reference: https://html.spec.whatwg.org/#image-button-state-(type=image)
The following content attributes must not be specified and do not apply to the element: accept, autocomplete, checked, dirname, list, max, maxlength, min, minlength, multiple, pattern, placeholder, readonly, required, size, and step.
-
Description:
in Applicability section (exception)
- fixed value: the element is an input element with a type attribute value of hidden, button, submit or reset; or
Should we add also image in the type list?
In addition, also the file type does not accept the autocomplete attribute (https://html.spec.whatwg.org/#file-upload-state-(type=file))
The following content attributes must not be specified and do not apply to the element: alt, autocomplete, checked, dirname, formaction, formenctype, formmethod, formnovalidate, formtarget, height, list, max, maxlength, min, minlength, pattern, placeholder, readonly, size, src, step, and width.