Bug 248894

Summary: Autocomplete suggestion above the keyboard fails to autocomplete when attempting to fill multiple different fields.
Product: WebKit Reporter: odinman08
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, akeerthi, cdumez, megan_gardner, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
steps showing the bug and expected result. none

Description odinman08 2022-12-07 11:11:30 PST
Created attachment 463926 [details]
steps showing the bug and expected result.

It appears the name attribute for fields also needs to not include "birthday" example "day" keyword in them to reproduce. 
- Visit https://codepen.io/kaplag/pen/GRGzZEX…
- tap into email field
- tap an email in the "suggestions" bar above keyboard (not the autoFill contact button)
- observe autofill works

- focus moves to "month" field. Tap the birthday in the "suggestions" bar above the keyboard.
- observe the fields do not autocomplete.

Given that the fields have appropriate autocomplete attribute values when tapping the autofill suggestion bar then it fills all related fields with the data 

workaround includes "birthday" in name attributes. example "birthday-day"
https://codepen.io/kaplag/pen/KKerpVV

I'm speculating that there's some conflict with the standard autocomplete attribute and Safari's own logic to predict fields that could be autofilled.
Comment 1 Radar WebKit Bug Importer 2022-12-14 11:12:19 PST
<rdar://problem/103364643>