<?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>35533</bug_id>
          
          <creation_ts>2010-03-01 11:38:03 -0800</creation_ts>
          <short_desc>onclick event in select elements don&apos;t work</short_desc>
          <delta_ts>2013-02-07 02:57:51 -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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://pyther.net/a/test.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Matthew">pyther</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dev</cc>
    
    <cc>dev</cc>
    
    <cc>dusty</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>194745</commentid>
    <comment_count>0</comment_count>
    <who name="Matthew">pyther</who>
    <bug_when>2010-03-01 11:38:03 -0800</bug_when>
    <thetext>As the summary states onclick events on select objects do not work.

Here is a sample page: http://pyther.net/a/test.html

onchange works, but onclick does not in webkit. This works in firefox. 

According to w3schools onclick is a supported event: http://www.w3schools.com/TAGS/tag_select.asp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195314</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-03-02 16:42:10 -0800</bug_when>
    <thetext>What browser are you testing with? Is it Qt or Gtk based?

This test works for me in Safari on Mac OS X.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195317</commentid>
    <comment_count>2</comment_count>
    <who name="Matthew">pyther</who>
    <bug_when>2010-03-02 16:54:04 -0800</bug_when>
    <thetext>The problem happens with Midori, uzbl, and chromium so (gtk based).

However the problem also appears to happens with Arora (qt based).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195321</commentid>
    <comment_count>3</comment_count>
    <who name="Matthew">pyther</who>
    <bug_when>2010-03-02 17:03:30 -0800</bug_when>
    <thetext>Just to clarify this happens the test on on the dropdown boxes not the submit button. I removed the submit button on the test page.

Expected Behavior:
onChange - JS alert box when dropdown item is changed
onClick - JS alert box when dropdown is clicked

Actual Results
onchange - works - alert box shows up when item is changed
onclick - does NOT work - alert box does not appear</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195325</commentid>
    <comment_count>4</comment_count>
    <who name="Dusty Phillips">dusty</who>
    <bug_when>2010-03-02 17:14:22 -0800</bug_when>
    <thetext>Under Chromium for Linux, in pyther&apos;s test page, I don&apos;t get the onclick alert until I have clicked twice on the select box. Clicking once drops down the menu, then if I click again on the select box (NOT on the menu) the onclick is finally fired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195701</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Michalik">dev</who>
    <bug_when>2010-03-03 11:56:50 -0800</bug_when>
    <thetext>I confirm this bug on WebkitGtk. I use the current git head and I don&apos;t get the onclick alert. I tried what Dusty Phillips suggested as well, but even if I click the dropdown twice I don&apos;t get the alert. 
As reported before the onchange works as expected.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>