Bug 137989

Summary: [iOS] iPhone unselecting items in <select multiple> shows incorrect values selected
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: WebKit2Assignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ddkilzer, enrica, joepeck, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2014-10-22 17:26:14 PDT
iPhone unselecting items in <select multiple> shows incorrect values selected.

* TEST

    <select multiple="multiple" id="stuff" name="stuff">
        <option value="1">0001</option>
        <option value="2">0002</option>
        <option value="3">0003</option>
    </select>

* STEPS TO REPRODUCE
1. Load test
2. Tap the <select> and select 0001, 0002, and 0003
3. Tap to unselect 0001, 0002, 0003
  => expected to see "3 items" => "2 items" => "0003", => "0 Items"
  => actual results were "3 items" => "0001" => "0002" => "0003"

We aren't treating taps on multi select form controls as multiple selection taps. We are treating them as full selections.
Comment 1 Joseph Pecoraro 2014-10-22 17:26:31 PDT
<rdar://problem/18729429>
Comment 2 Joseph Pecoraro 2014-10-22 17:28:05 PDT
Created attachment 240310 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2014-10-23 12:38:25 PDT
Comment on attachment 240310 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 240310

Committed r175135: <http://trac.webkit.org/changeset/175135>