Bug 260960

Summary: autocomplete email does not work on input
Product: WebKit Reporter: collimarco91
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: akeerthi, cdumez, jberlin, karlcow, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: macOS 13   

Description collimarco91 2023-08-31 05:15:01 PDT
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?
Comment 1 Alexey Proskuryakov 2023-08-31 09:15:07 PDT
Not sure if this is a Safari or WebKit behavior, but yes, this seems weird.
Comment 2 Karl Dubost 2023-09-03 22:54:45 PDT
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
Comment 3 Radar WebKit Bug Importer 2023-09-07 05:15:12 PDT
<rdar://problem/115109926>