Bug 137261 - [iOS] <select> with <optgroup> may change initial selected option when assisted
Summary: [iOS] <select> with <optgroup> may change initial selected option when assisted
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-09-30 13:01 PDT by Joseph Pecoraro
Modified: 2016-09-07 21:49 PDT (History)
2 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (2.60 KB, patch)
2014-09-30 13:05 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>