Bug 98994

Summary: addEventListener() doesn't work for "dblclick" event
Product: [Applications] konqueror Reporter: Travers Carter <tcarter>
Component: khtml ecmaAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test case for addEventListener 'dblclick'
Proposed patch

Description Travers Carter 2005-02-10 04:35:06 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs

When attaching a double click (dblclick) event using addEventListener() the event listener function is never called when the node is double clicked, however if you change the event name to 'click' and everything works as expected.

The supplied test case works as expected in Firefox 1.0, but the bug does seem to be present in Safari 1.0 (not sure about later versions).

If you set the ondblclick attribute in the HTML or set the .ondbclick property from Javascript the function is called correctly.
Comment 1 Travers Carter 2005-02-10 04:39:40 UTC
Created attachment 9523 [details]
Test case for addEventListener 'dblclick'

This testcase demonstrates usage of addEventListener for the dblclick event
which works in Firefox 1.0, but fails in Konqueror 3.3.1 (Fedora Core 3)
Comment 2 Harri Porten 2005-05-18 01:48:20 UTC
Confirmed with today's CVS.
Comment 3 Harri Porten 2005-05-18 02:02:27 UTC
Created attachment 11076 [details]
Proposed patch

Note sure what is the reason behind the "ignore" comment.
Comment 4 Harri Porten 2005-05-18 02:41:45 UTC
Fixed in revision 415255.