lewisje / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Event listener from object element may be applied to svg element erroneously #523

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an svg object and add to the page with SVG Web
2. Add another SVG element to the page
3. Add event listener to the svg element

What is the expected output? What do you see instead?
There is an exception calling addEventListener. The root problem is that there 
is a cache of the object addEventListener method (due to an unrelated bug fix) 
which is then patched in to any svg root element which is added later. This 
triggers an exception because the object addEventListener cannot be applied to 
other element types.

Original issue reported on code.google.com by grick23@gmail.com on 22 Jun 2010 at 3:44

GoogleCodeExporter commented 8 years ago
Fixed in r1193.

Original comment by grick23@gmail.com on 22 Jun 2010 at 3:51