Bug 260960
| Summary: | autocomplete email does not work on input | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | collimarco91 |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | akeerthi, cdumez, jberlin, jespertheend, karlcow, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | macOS 13 | ||
collimarco91
I have a simple form with this input:
<input type="email" name="email" id="email" value="" required="required" autocomplete="email" placeholder="Your email">
The form allow the users to subscribe to a newsletter.
The user clicks on the field and starts typing the email, but Safari doesn't suggest anything and doesn't try to autocomplete.
Chrome on the other hand, immediately suggests your user email when you focus the field. This is a better UX.
Can you improve this?
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Not sure if this is a Safari or WebKit behavior, but yes, this seems weird.
Karl Dubost
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete-email
I'm not sure this is controlled by WebKit either.
Forms have often the AutoFill form feature with a key
Radar WebKit Bug Importer
<rdar://problem/115109926>
Jesper van den Ende
I found two instances where autocomplete="email" fails:
- on insecure http:// pages
- when the address bar contains the text 'login'
There are probably more cases as well but it's difficult to say without more info