An autoComplete attribute names a value that browsers do not know
What it finds
Browsers fill in forms from the autocomplete tokens of HTML, such as email, given-name or current-password, which also let assistive technology tell users what a field asks for. A token they do not know makes them ignore the attribute.
Reported are literal autoComplete values of <input>, <select> and <textarea> that are not on or off and do not end with a field name of the HTML standard, optionally after a section- token, shipping or billing, a contact kind, and followed by webauthn.
From the rule's source, unknown_autocomplete_token.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:unknown-autocomplete-token" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:unknown-autocomplete-token] reason="..."tx0 explain tx0/ts:unknown-autocomplete-token shows the same in the terminal. Found a false positive? Report it.