New issue
Advanced search Search tips

Issue 648549 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Feature



Sign in to add a comment

Forms autocomplete not working even though autocomplete attribute is provided.

Reported by aadilkha...@gmail.com, Sep 20 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Steps to reproduce the problem:
1. Create a basic form with an input element for email
2. Add autocomplete attribute with value "email" and name attribute with some random value (not email).
3. When filling this form, autocomplete doesn't work(no previously used values of emails are listed).

What is the expected behavior?
Previously used values of emails should have been listed as we have provided the autocomplete attribute as email.

What went wrong?
No previously filled values of email are listed even though we have provided autocomplete attribute as email.

Did this work before? N/A 

Chrome version: 53.0.2785.116  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0

What is the use of providing keyword in autocomplete attribute if we have to provide the name attribute as email. Shouldn't the autocomplete attribute be independent of the name attribute.
 
Components: UI>Browser>Autofill

Comment 2 by zkoch@chromium.org, Sep 21 2016

Labels: Needs-Feedback
Can you provide a test form example that we can validate on? Thanks!
I have attached the test form. I am using this form without any addresses in autofill settings. I am expecting chrome to provide me my previously filled values.
sampleAutocomplete.html
426 bytes View Download

Comment 4 by zkoch@chromium.org, Sep 21 2016

Hm, this sample is working for me. Note that it will only work if you have an email in one of your autofill profiles (chrome://settings/Autofill). Do you have a profile there?
so it will work only if i hava profile in autofill? What about other fields which are not present there like first name with autocomplete attribute "given-name" as provided in the documentation: https://developers.google.com/web/fundamentals/design-and-ui/input/forms/label-and-name-inputs?hl=en.

Comment 6 by zkoch@chromium.org, Sep 26 2016

Status: WontFix (was: Unconfirmed)
Yes, it will only work if you have a profile in autofill. This also holds true for other labels like given-name, family-name, etc. Autofill profiles are generated automatically, and then have different degrees of "completeness". For example, you may have an autofill profile with just an email. If you did, a user would see that option show up on the field with autocomplete="email" on it.

Going to mark this is WontFix, but happy to continue the discussion and clarify behavior.
But there is no option to specify given-name,family-name unlike name and email. So how will it work for given-name and family-name?

Comment 8 by se...@chromium.org, Sep 28 2016

You mean when you create a profile? If you write "John Smith" in the autofill settings page to create a new profile, it will know that "John" is the given name and "Smith" is the family name. 

Also, Autofill will automatically create a new profile when you fill a form, so if you fill a form where given and family name are split into two fields, Autofill will be able to fill give, family and your full name. 

Does that answer your question?
Yes that does. Thanks :)
I have just one more question, there are many autofill keyword provided in the html5 spec(https://html.spec.whatwg.org/multipage/forms.html#autofill-field) which are still not supported by chrome like(sex,bday,bday-month etc). Can we expect these keywords to be supported soon?

Also when can we expect the support for autofill detail tokens for named group/autofill scope like "section-", as recommended by HTML5.

Sign in to add a comment