How to Fix Lighthouse “autocomplete” Value Errors
If Lighthouse's accessibility audit reports "autocomplete attribute is not used correctly," rewrite the autocomplete value to a name defined by HTML, and the warning goes away. autocomplete tells the browser's autofill what a field expects, on forms such as sign-up and address entry. A value like phone or zip that has a clear meaning but is not one of the defined names gets flagged.
<!-- Flagged -->
<input type="tel" name="tel" autocomplete="phone">
<input type="text" name="zip" autocomplete="zip">
<!-- Fixed -->
<input type="tel" name="tel" autocomplete="tel">
<input type="text" name="zip" autocomplete="postal-code">
I prepared several forms with different values in a test environment and checked which values Lighthouse flagged.
The test environment was Ubuntu 24.04, Node.js 22.23.5, and Lighthouse 13.6.0 (the CLI installed with npm; the bundled axe-core is 4.14.0), using headless Google Chrome for Testing 158. Lighthouse ran with its default mobile settings, and I ran only the accessibility category. I did not test whether addresses or passwords saved in the browser are actually autofilled. I also did not test the DevTools Lighthouse panel or PageSpeed Insights.
The report lists every incorrect field
The test used a sign-up form with fields for name, email address, phone number, postal code, prefecture, and password. Only the name field had the correct value (name). The other five fields had common incorrect values.
<label>お名前 <input type="text" name="name" autocomplete="name"></label>
<label>メールアドレス <input type="email" name="email" autocomplete="mail"></label>
<label>電話番号 <input type="tel" name="tel" autocomplete="phone"></label>
<label>郵便番号 <input type="text" name="zip" autocomplete="zip"></label>
<label>都道府県 <select name="pref" autocomplete="prefecture">…</select></label>
<label>パスワード <input type="password" name="password" autocomplete="password"></label>
I served the page with python3 -m http.server and ran the following:
npx lighthouse http://127.0.0.1:8000/before.html \
--only-categories=accessibility --locale=ja \
--output=json --output=html --output-path=./out/before-ja \
--chrome-flags="--headless=new --no-sandbox" --quiet
The CHROME_PATH environment variable pointed to the Chrome for Testing executable used in the test. I added --no-sandbox to launch Chrome in the test environment.
The Japanese report showed the following. The "problem elements" list included all five fields with incorrect values, including the <select> field.

The score drops by only one point
The accessibility score was 99, and after the fixes it became 100. Five incorrect fields gave the same 99 as one would.
accessibility score: 99 (0.99) | autocomplete-valid: score=0 weight=1
The accessibility score is a weighted percentage of passed audits. The weight of this audit (autocomplete-valid) is 1 in the Lighthouse 13.6.0 configuration. Many audits have weights of 7 or 10, so 1 is small by comparison. In the test form, the total weight of the scored audits was 92, and only this one audit, with weight 1, failed. 91 ÷ 92 is 0.989, which rounds to 99. Each audit is either a pass or a fail, so no matter how many fields are wrong, the score drops only by this audit's weight of 1.
Although the effect on the score is small, the report's description says that for screen readers to work correctly, autocomplete values must be valid and used correctly. The MDN explanation of autocomplete says that when the browser can determine a field's purpose from its value, it can suggest saved names, addresses, and so on, which helps people who find typing difficult.
Common mistakes and the correct values
Changing the form values as follows passed Lighthouse and gave a score of 100.
| Field | Flagged value | Fixed value |
|---|---|---|
| Email address | mail |
email |
| Phone number | phone |
tel |
| Postal code | zip |
postal-code |
| Prefecture | prefecture |
address-level1 |
| Password (sign-up) | password |
new-password |
I also tested other values one at a time. e-mail and first-name were flagged. given-name (first name) and current-password (the existing password, for example at login) passed. Email, written with a capital E, also passed.
For Japanese addresses, according to the MDN explanation, the prefecture is address-level1 and the city is address-level2. For passwords, use new-password for sign-up and password change fields, and current-password for fields where the user enters their existing password, such as login. The same MDN page also has the full list of valid values.
Use off to stop autofill
Writing an undefined string such as nope or chrome-off to stop autofill was flagged in both cases. off passed.
NG <input type="text" name="f16" autocomplete="nope">
NG <input type="text" name="f17" autocomplete="chrome-off">
ok <input type="text" name="f18" autocomplete="off">
The MDN explanation says that a made-up string meant to get around autofill stops the browser from determining the field's purpose, which has the same effect as turning autofill off. It recommends turning autofill off only where it is really needed, such as CAPTCHA or one-time token fields, and using off in those cases. It also notes that in most browsers, off on a login field does not stop password managers from saving or autofilling passwords.
Order matters when combining tokens
autocomplete accepts several tokens separated by spaces. For example, the shipping postal code is shipping postal-code. Putting the tokens in the wrong order was flagged.
| Value | Lighthouse |
|---|---|
shipping postal-code |
Passed |
section-a shipping postal-code |
Passed |
shipping section-a postal-code |
Flagged |
mobile tel |
Passed |
mobile |
Flagged |
home name |
Flagged |
email email |
Flagged |
username webauthn |
Passed |
webauthn |
Flagged |
As the MDN explanation describes, a group name starting with section- goes first, followed by shipping or billing. mobile and home are words that can only be placed in front of a contact value such as a phone number or email address. Writing mobile alone, or placing it before name, was flagged. webauthn, which lets passkeys appear as autofill candidates, goes at the end. Writing webauthn by itself was flagged.
Passing Lighthouse does not mean the value is correct
The test also found some values that Lighthouse does not flag.
First, none and false passed. In the axe-core 4.14.0 configuration that Lighthouse uses, values such as none, false, and true are added as values treated the same as off or on (axe-core autocomplete-valid configuration). They are not in the MDN list of values. To stop autofill, write off.
text and gender were not in the Lighthouse report. When I ran axe-core directly, these two were classified as "incomplete," meaning they need a human check, not as "violations." The shared processing for Lighthouse's accessibility audits fails only on axe-core violations.
violations: e-mail | mail | phone | mobile | home name | zip | first-name | password | nope | chrome-off | shipping section-a postal-code | webauthn | email email | prefecture
incomplete: text | gender
Mismatches between the input type and the value were not flagged either. autocomplete="email" on an type="tel" field and autocomplete="tel" on an type="number" field both passed. In axe-core 4.14.0, the check that tests the combination with the input type (autocomplete-appropriate) is marked as deprecated, so autocomplete-valid only checks how the value is written.
Lighthouse checks whether a value is a defined name and whether the tokens are in the right order. It does not check whether the value fits what the field actually holds, so after fixing autocomplete, review yourself whether the value matches the field's content.
Finally, fields that have readonly or disabled, and fields with type="hidden", were not flagged even when their value was phone. axe-core's target selection excludes these fields from the check. <select> and <textarea>, however, are checked, and <textarea autocomplete="memo"> was flagged.





