An onClick event specified for a TD element will not fire unless its contents are clicked, instead of simply clicking anywhere within the cell. Steps to reproduce: 1- load attached testcase in browser 2- click anywhere in table cell, except on text 3- click text in table cell Actual result: alert triggered by onclick event only pops up when the cell's contents are clicked Expected result: alert should popup regardless of where within the cell the mouse click occurs Additional Information: Works as expected in Firefox, Camino, IE/Win, IE/Mac
Created attachment 2562 [details] testcase
Confirming with TOT Webkit and Safari 2.0 (v412).
Also occurs with the mouseover event
*** Bug 4339 has been marked as a duplicate of this bug. ***
The behavior of this is not entirely consistent. I can construct test cases where the onclick event sometimes fires and sometimes does not fire. I'll attach one soon.
Created attachment 3395 [details] patch to fix this
Comment on attachment 3395 [details] patch to fix this r=me can this be tested in an automated way?
I don't see a way to exercise the hit testing code from JavaScript.
Added originally attached test case to manual_tests.