-
Notifications
You must be signed in to change notification settings - Fork 504
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
First Name name attribute wrong value assigned #2416
Comments
It looks like this is your first issue. Welcome! 👋 One of the project maintainers will be with you as soon as possible. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct. |
Moving this over as it looks like the example is here: https://github.com/mdn/interactive-examples/blob/main/live-examples/html-examples/form-attributes/attribute-autocomplete.html Although I'm not sure what the issue is. In the first screenshot you are changing |
Both ways of writing |
If that so then why name="firstName" not working for me in example and name="firstname" working in example. For reference you can check above images. I tried both ways in my project but name="firstname" work for me. |
You can use the following guide, to find out the exact information held by the Chrome browser, used in autofill suggestions: https://superuser.com/questions/884029/see-all-autofill-data. As you can see, I really don't know if we should use |
Hey @NiedziolkaMichal! According to W3, HTML attribute names may be written with any mix of lower- and uppercase letters that, when converted to all-lowercase, matches the attribute's name; attribute names are case-insensitive, so you’re onto something. |
The example was missing the The relevant spec is: https://html.spec.whatwg.org/#autofilling-form-controls:-the-autocomplete-attribute
|
Maybe I can add those components to see if this solves the issue @estelle. |
it works for me in Edge already. I am not sure if this is actually resolved or if there is still an issue. |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
What specific section or headline is this issue about?
HTML Demo content first name name attribute wrong value assiged
What information was incorrect, unhelpful, or incomplete?
First Name name attribute value "firstName" is wrong ,for fix this issue we need to assign "firstname" to name attribute then it will work.
I have added 2 images first with name attribute with "firstname" that suggesting us a option second image with name attribute with "firstName" that didn't suggesting us a option.
Due to name attribute value autocomplete attribute is able to identify the fields and auto complete the field value.
check below images.
![Screenshot from 2023-01-25 12-34-39](https://user-images.githubusercontent.com/77185336/214500947-53429bbb-e3b4-467a-a5fc-031cdf9fc266.png)
![Screenshot from 2023-01-25 12-34-29](https://user-images.githubusercontent.com/77185336/214500953-f3a9c61f-efc7-4a56-9e4b-188c6436d789.png)
What did you expect to see?
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/html/attributes/autocomplete
The text was updated successfully, but these errors were encountered: