Created attachment 369293 [details]
all three rectangles should raise an alert when clicked
if a better testcase is available please attach.
*** Bug 513579 has been marked as a duplicate of this bug. ***
I don't see any onmouseclick attributes on some of those SVG elements. Why are they still supposed to fire events still?
The testcase uses addEventListener instead of an onmouseclick attribute. It's just two different ways of doing the same thing.
Sigh, my bad. Can't wrap my mind around it. Must be the heat.
Created attachment 518946 [details]
Test cases for addEventListener bug
As I bumped into this bug myself yesterday, I spent some time building a series of simple test cases to demonstrate the bug more precisely and show what works and what doesn't in Firefox.
Clicking on any square in the test-case file should produce an alert dialog box.
All of the test cases pass in Opera 11, Safari 5, and Chrome 10. I have not tested it in IE9.
However, while Firefox correctly handles clicks on the ten green squares, it fails on clicks on the four red squares in both Firefox 3.6 and in Firefox 4.0 RC1.
*** Bug 957313 has been marked as a duplicate of this bug. ***
SVGElementInstance trees have been removed from SVG 2, so we won't be doing this.