Bug 72804

Summary: [test case] onClick event on td element does not respond when click is not on contained component
Product: [Applications] konqueror Reporter: Julian Rockey <linux>
Component: khtml ecmaAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test case referenced in the description

Description Julian Rockey 2004-01-17 11:46:52 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice) 
OS:          Linux

The onClick event on a td element does not respond if the click is not on a component contained by the <td>. This can occur if the td is given width= and height= attributes. See attached HTML for example. Clicking on the words "Click here!" displays the alert box. But click above or below them (but within the td cell) does not.

I don't know what the standard says about this, but it does conflict with Gecko's behaviour.

An example of a site that relies on this is http://www.powergen.co.uk, which uses td's with background images and onClick's as the front page. Despite, interestingly, explicitly mentioning Konqueror as working (see http://www.powergen.co.uk/version.asp, the page you get if you visit with Epiphany)!
Comment 1 Julian Rockey 2004-01-17 11:47:36 UTC
Created attachment 4203 [details]
Test case referenced in the description
Comment 2 Julian Rockey 2004-01-17 12:20:11 UTC
This is quite possibly related to bug #70326 - though a more significant test-case, I believe, as it can break navigation rather than just look
 
Comment 3 Maksim Orlovich 2005-01-25 23:36:54 UTC
See also: bug #75267, bug #85440. Most likely the same bug.
Comment 4 Leo Savernik 2005-02-16 18:37:31 UTC
Fixed for KDE 3.4 by [1]

[1] http://webcvs.kde.org/kdelibs/khtml/rendering/render_table.cpp?r1=1.272&r2=1.273