Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete on login forms: how do browsers designate input fields to be username/password? #19834

Closed
Sebi2020 opened this issue Aug 22, 2022 · 1 comment
Labels
Content:Security Security docs help wanted If you know something about this topic, we would love your help!

Comments

@Sebi2020
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

What specific section or headline is this issue about?

The autocomplete attribute and login fields

What information was incorrect, unhelpful, or incomplete?

The page explains that the autocomplete attribute on "login forms" is ignored but does not explain the exact conditions under which a browser designates an input field to be username or password input field. Is it the label, is it the name? How to avoid undefined behaviour?

What did you expect to see?

Clear conditions under which a field is recognized to be an login input.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

Consider to disable this. It does not work as expected under all conditions.

MDN metadata

Page report details
@github-actions github-actions bot added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Content:Security Security docs labels Aug 22, 2022
@sideshowbarker sideshowbarker added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Aug 23, 2022
@Josh-Cena Josh-Cena changed the title Autocomplete on login forms Autocomplete on login forms: how do browsers designate input fields to be username/password? Jun 6, 2024
@Josh-Cena
Copy link
Member

This is addressed extensively in https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete already. It just needs a name or id.

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Security Security docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants