[Webkit-unassigned] [Bug 201768] Datalist option's label not used

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 17 12:29:13 PDT 2019


Javan Makhmali <javan at javan.us> changed:

           What    |Removed                     |Added
                 CC|                            |javan at javan.us

--- Comment #2 from Javan Makhmali <javan at javan.us> ---
Created attachment 381214

  --> https://bugs.webkit.org/attachment.cgi?id=381214&action=review

Datalist option labels (Left: Chrome, Right: Safari)

Labels can provide useful context to datalist options along with additional data to search and match against. Consider the following:

<input type="email" list="people">

<datalist id="people">
  <option value="tim at apple.com">
    Tim Cook (CEO)
  <option value="katherine at apple.com">
    Katherine Adams (Senior Vice President and General Counsel)
  <option value="eddy at apple.com">
    Eddy Cue (Senior Vice President, Internet Software and Services)

Chrome displays option values *and* labels, and matches against both when typing in the text field. For example, typing "president" matches the second and third options.

Safari only displays option values currently. Typing "president" yields no matching options.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191017/878ba0a5/attachment.html>

More information about the webkit-unassigned mailing list