<?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>18358</bug_id>
          
          <creation_ts>2008-04-08 03:27:32 -0700</creation_ts>
          <short_desc>Feature request / bug - change the way click on disabled option in selects work</short_desc>
          <delta_ts>2013-11-02 11:05:14 -0700</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>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>122774</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tore B. Krudtaa">krudtaa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>browserbugs2</cc>
    
    <cc>eoconnor</cc>
    
    <cc>jonlee</cc>
    
    <cc>mitz</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76593</commentid>
    <comment_count>0</comment_count>
    <who name="Tore B. Krudtaa">krudtaa</who>
    <bug_when>2008-04-08 03:27:32 -0700</bug_when>
    <thetext>Hi.

Current implementation of select lists in Safari can be improved a lot.

If you have a select with some option tags and some of the option tags are DISABLED then when you click on a disabled option, then the last highlighted option in the select will be selected.
This is very counter intuitive for end-user.

For normal users (non-developers) of a web-application, it might not be obvious at first, that when an option is not getting highlighted when moving the mouse pointer over the options in select, it means that it should not be clicked.

So the user might want to try clicking a disabled option.

If you do this in Firefox, then nothing happens and the select (dropdown list) will stay open, with no change in what is selected in the list.

If you click on a disabled option in a select in Safari, then the last highlighted option in the select will be selected and the dropdown list will close. (when I say last highlighted option it will depend on from where you are moving the mousepointer toward the disabled option.... if from above in the dropdown, then the last highlighted option will be the last non-disabled option above the disabled option in question, likewise for options below the disabled option in question) 

I would like to see a select in safari work same way as in Firefox.
If this is implemented then it will be harder for an enduser to make 
a wrong selection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88161</commentid>
    <comment_count>1</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2008-08-09 18:44:54 -0700</bug_when>
    <thetext>&gt; I would like to see a select in safari work same way as in Firefox.

I agree and I&apos;m voting for this bug.

A testcase:

http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/OptionDisabledSupport.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88162</commentid>
    <comment_count>2</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2008-08-09 18:47:13 -0700</bug_when>
    <thetext>Tore,

In all fairness, I don&apos;t think this should be a feature request but a normal bug to fix.

A disabled &lt;option&gt; should be dimmed out, grayed out, it should be unfocusable and it should be unselectable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88163</commentid>
    <comment_count>3</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2008-08-09 19:03:08 -0700</bug_when>
    <thetext>According to Robin Lionheart

http://www.robinlionheart.com/stds/html4/results

Safari 1.3.2 did not support &lt;option disabled&gt;. So chances are he would also give a no, a red X for support of &lt;option disabled&gt; in Safari 3.1.x.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88170</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-08-09 23:51:25 -0700</bug_when>
    <thetext>I think this is just a bug that needs to be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88171</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2008-08-09 23:52:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/6138855&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>459042</commentid>
    <comment_count>6</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2011-08-30 11:31:49 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; If you click on a disabled option in a select in Safari, then the last highlighted option in the select will be selected and the dropdown list will close. (when I say last highlighted option it will depend on from where you are moving the mousepointer toward the disabled option.... if from above in the dropdown, then the last highlighted option will be the last non-disabled option above the disabled option in question, likewise for options below the disabled option in question) 

This part of the bug has since been fixed. Hovering over a disabled option removes the highlighted state from the last option.

Clicking on a disabled option, then, closes the menu but retains the last known selection of the select widget.

This is the same behavior as with native apps on OS X, so from a user perspective it should be expected behavior. I think we can mark this bug as fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>459044</commentid>
    <comment_count>7</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2011-08-30 11:34:17 -0700</bug_when>
    <thetext>I&apos;m sorry, I completely missed the Windows XP platform part. :-/ Reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>946250</commentid>
    <comment_count>8</comment_count>
    <who name="">mitz</who>
    <bug_when>2013-11-02 11:05:14 -0700</bug_when>
    <thetext>Looks like bug 122774 was used to fix this.

*** This bug has been marked as a duplicate of bug 122774 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>