First name (with "given-name" autocomplete attribute) does not autofill in WKWebView

Originator:lap.felix
Number:rdar://40338080 Date Originated:17-May-2018 02:26 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.3
Classification:UI/Usability Reproducible:Always
 
Summary:
A properly configured <input> with a “given-name” name will not show the first name suggestion autofill bar above the keyboard.

It works well with the full name (name=“name”) and the last name (name=“family-name”) and in Safari, but not in WKWebView.

Steps to Reproduce:
Load this HTML in a WKWebView (or open the sample project I attached to this radar):

<form>
  Full name:<br>
  <input type="text" name="name" autocomplete="name"><br>
  First name:<br>
  <input type="text" name="given-name" autocomplete="given-name"><br>
  Last name:<br>
  <input type="text" name="family-name" autocomplete="family-name"><br>
</form>

Notice the full name and last name autofill suggestions work, but not first name. It works in Safari.

Expected Results:
The autofill functionality should work for the full name, first name and last name.

Actual Results:
The autofill functionality only works for the full name and last name. Not first name.

Version:
11.3

Notes:

Comments

Still an issue in iOS 12.1.4

By tristan.tran89 at March 26, 2019, 4:15 p.m. (reply...)

Still an issue in iOS 11.4 beta 6

By lap.felix at May 17, 2018, 7:13 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!