Why this matters
Missing or incorrect autocomplete values hinder accessibility and usability, especially for screen readers. Ensure valid and meaningful autocomplete values are applied.
Check for missing or incorrect autocomplete attributes. Proper use of autocomplete improves accessibility and usability, especially for screen readers.
Missing or incorrect autocomplete values hinder accessibility and usability, especially for screen readers. Ensure valid and meaningful autocomplete values are applied.
Side-by-side examples engineers can pattern-match during review.
function MyInput() {
return <input type="text" autocomplete="foo" />; // Noncompliant
}function MyInput() {
return <input type="text" autocomplete="title" />;
}function MyInput() {
return <input type="text" autocomplete="foo" />; // Noncompliant
}function MyInput() {
return <input type="text" autocomplete="title" />;
}From the same buckets as this rule.