[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


https://bugs.webkit.org/show_bug.cgi?id=201768

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>
  <option value="katherine at apple.com">
    Katherine Adams (Senior Vice President and General Counsel)
  </option>
  <option value="eddy at apple.com">
    Eddy Cue (Senior Vice President, Internet Software and Services)
  </option>
</datalist>

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