<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25051</bug_id>
          
          <creation_ts>2009-04-04 16:31:50 -0700</creation_ts>
          <short_desc>Optgroup in select breaks keyboard navigation.</short_desc>
          <delta_ts>2014-03-05 02:05:29 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Ljungberg">aljungberg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>acorncom</cc>
    
    <cc>adele</cc>
    
    <cc>alexanderkahn</cc>
    
    <cc>benjamin</cc>
    
    <cc>bugzilla</cc>
    
    <cc>hirogeek</cc>
    
    <cc>krinklemail</cc>
    
    <cc>mail</cc>
    
    <cc>peter.ostrander</cc>
    
    <cc>rik</cc>
    
    <cc>robin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116546</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Ljungberg">aljungberg</who>
    <bug_when>2009-04-04 16:31:50 -0700</bug_when>
    <thetext>When the &lt;optgroup&gt; tag is used, keyboard navigation does not work in a select drop down if the drop down is opened. Keyboard navigation still works if the drop down is in its closed state.

Tested on build 530.5+.

The attached test case demonstrates the problem. There are two select drop downs in the page. The first one contains an optgroup, the second one does not. Everything else is equal. To reproduce the problem:

Incorrect result:
1. Click the first drop down to bring up the popup with selections.
2. Type &quot;I&quot; on the keyboard.
3. The choice &quot;Zenbe&quot; is highlighted.

Correct result:
1. Click the second drop down bring up the popup with selections.
2. Type &quot;I&quot; on the keyboard.
3. The choice &quot;Infinity Internet&quot; is highlighted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116547</commentid>
    <comment_count>1</comment_count>
      <attachid>29258</attachid>
    <who name="Alexander Ljungberg">aljungberg</who>
    <bug_when>2009-04-04 16:36:04 -0700</bug_when>
    <thetext>Created attachment 29258
Reduced test case to demonstrate select keyboard acceleration problem.

First select box works incorrectly, second works correctly when selecting items through typing on the keyboard with the select popup open.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117254</commentid>
    <comment_count>2</comment_count>
    <who name="Anthony Ricaud">rik</who>
    <bug_when>2009-04-12 07:20:29 -0700</bug_when>
    <thetext>Confirmed with r42369.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>351633</commentid>
    <comment_count>3</comment_count>
    <who name="Reid Beels">mail</who>
    <bug_when>2011-02-15 15:07:46 -0800</bug_when>
    <thetext>Confirmed in r78528</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>416515</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kahn">alexanderkahn</who>
    <bug_when>2011-06-07 08:15:59 -0700</bug_when>
    <thetext>I think fixing this would be a great improvement. This trips me up a lot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427428</commentid>
    <comment_count>5</comment_count>
    <who name="Robin Stocker">robin</who>
    <bug_when>2011-06-25 13:33:02 -0700</bug_when>
    <thetext>Confirmed in Chrome 14.0.797.0 dev. Firefox behaves correctly by the way (maybe that is a motivation).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538553</commentid>
    <comment_count>6</comment_count>
    <who name="">bugzilla</who>
    <bug_when>2012-01-19 01:25:32 -0800</bug_when>
    <thetext>This is really annoying. Even Internet Explorer (checked with version 9) handles this correctly. That&apos;s quite embarrassing, huh? Please fix this soon! Thanks a lot!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>654640</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-06-21 10:07:20 -0700</bug_when>
    <thetext>*** Bug 89644 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832196</commentid>
    <comment_count>8</comment_count>
    <who name="Peter Ostrander">peter.ostrander</who>
    <bug_when>2013-02-13 12:33:08 -0800</bug_when>
    <thetext>Experiencing this same problem across Webkit browsers. I&apos;ve created a jsfiddle that displays the issue. 

http://jsfiddle.net/peterostrander/dtt9L/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>832277</commentid>
    <comment_count>9</comment_count>
    <who name="Peter Ostrander">peter.ostrander</who>
    <bug_when>2013-02-13 13:31:48 -0800</bug_when>
    <thetext>It also appears that this only occurs when an optgroup has nested options inside it. If optgroups are present in the select, but none of them contain nested options, then keyboard navigation works correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>953365</commentid>
    <comment_count>10</comment_count>
    <who name="fr0d0z">acorncom</who>
    <bug_when>2013-11-21 17:19:58 -0800</bug_when>
    <thetext>A workaround using jQuery can be found here:
http://stackoverflow.com/questions/8829451/bug-in-select-optgroup-using-keyboard-accelerators-in-webkit

Would love to see a fix for this though :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>987124</commentid>
    <comment_count>11</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2014-03-04 22:04:30 -0800</bug_when>
    <thetext>It seems to work now. I just tried with WebKit trunk on Mavericks and I can navigate when the popup is up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>987201</commentid>
    <comment_count>12</comment_count>
    <who name="Alexander Ljungberg">aljungberg</who>
    <bug_when>2014-03-05 02:05:29 -0800</bug_when>
    <thetext>I can confirm this is resolved, even in vanilla Safari 7.0.2.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>29258</attachid>
            <date>2009-04-04 16:36:04 -0700</date>
            <delta_ts>2009-04-04 16:36:04 -0700</delta_ts>
            <desc>Reduced test case to demonstrate select keyboard acceleration problem.</desc>
            <filename>select keyboard error webkit bug 25051.html</filename>
            <type>text/html</type>
            <size>824</size>
            <attacher name="Alexander Ljungberg">aljungberg</attacher>
            
              <data encoding="base64">PCEtLSBUZXN0ZWQgd2l0aCA1MzAuNSsgCiAgCiAgSW5jb3JyZWN0IHJlc3VsdDoKICAxLiBDbGlj
ayB0aGUgZmlyc3QgZHJvcCBkb3duIHRvIGJyaW5nIHVwIHRoZSBwb3B1cCB3aXRoIHNlbGVjdGlv
bnMuCiAgMi4gVHlwZSAiSSIgb24gdGhlIGtleWJvYXJkLgogIDMuIFRoZSBjaG9pY2UgIlplbmJl
IiBpcyBoaWdobGlnaHRlZC4KCiAgQ29ycmVjdCByZXN1bHQ6CiAgMS4gQ2xpY2sgdGhlIHNlY29u
ZCBkcm9wIGRvd24gYnJpbmcgdXAgdGhlIHBvcHVwIHdpdGggc2VsZWN0aW9ucy4KICAyLiBUeXBl
ICJJIiBvbiB0aGUga2V5Ym9hcmQuCiAgMy4gVGhlIGNob2ljZSAiSW5maW5pdHkgSW50ZXJuZXQi
IGlzIGhpZ2hsaWdodGVkLgogIAogIC0tPgoKPGh0bWw+Cjxib2R5Pgo8c2VsZWN0IGlkPSJpZF9w
cm92aWRlciIgbmFtZT0icHJvdmlkZXIiPgo8b3B0Z3JvdXAgbGFiZWw9IkJ1c2luZXNzIGFuZCBQ
ZXJzb25hbCI+CjxvcHRpb24gdmFsdWU9IjAxIj4wMS5jb208L29wdGlvbj4KPG9wdGlvbiB2YWx1
ZT0iaW5maW5pdHlfaW50ZXJuZXQiPkluZmluaXR5IEludGVybmV0PC9vcHRpb24+CjxvcHRpb24g
dmFsdWU9InplbmJlIj5aZW5iZTwvb3B0aW9uPgo8L29wdGdyb3VwPgo8L3NlbGVjdD4KCjxzZWxl
Y3QgaWQ9ImlkX3Byb3ZpZGVyIiBuYW1lPSJwcm92aWRlciI+CjxvcHRpb24gdmFsdWU9IjAxIj4w
MS5jb208L29wdGlvbj4KPG9wdGlvbiB2YWx1ZT0iaW5maW5pdHlfaW50ZXJuZXQiPkluZmluaXR5
IEludGVybmV0PC9vcHRpb24+CjxvcHRpb24gdmFsdWU9InplbmJlIj5aZW5iZTwvb3B0aW9uPgo8
L3NlbGVjdD4KCjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>