Bug 137261

Summary: [iOS] <select> with <optgroup> may change initial selected option when assisted
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: WebKit2Assignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: enrica, joepeck
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2014-09-30 13:01:48 PDT
* TEST:

    <select onchange="alert('current selected value is:'+this.value);">
        <optgroup label="Group">
            <option value="a">A</option>
            <option value="b">B</option>
            <option selected value="c">C</option>
            <option value="d">D</option>
        </optgroup>
    </select>

* STEPS TO REPRODUCE:
1. Open test page
2. Tap the <select>
  => initial selection changes from "C" to "B"

I have a fix.
Comment 1 Joseph Pecoraro 2014-09-30 13:02:03 PDT
<rdar://problem/18444153>
Comment 2 Joseph Pecoraro 2014-09-30 13:05:34 PDT
Created attachment 238949 [details]
[PATCH] Proposed Fix
Comment 3 Enrica Casucci 2014-09-30 17:19:30 PDT
Comment on attachment 238949 [details]
[PATCH] Proposed Fix

Looks good to me.
Comment 4 WebKit Commit Bot 2014-10-01 01:15:45 PDT
Comment on attachment 238949 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 238949

Committed r174148: <http://trac.webkit.org/changeset/174148>