MRchildNEO / svgweb

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

id accessor property not working in IE8, regression from r1273 #595

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Strangely with r1283 the following will work in IE7 but not IE8 (works in all 
native browsers incl. IE9)

  newRect.addEventListener('click', function(evt) { alert(evt.target.id);}, false);

see reduced test-case here 

http://vis.uell.net/gsvg/eventListener.html

Original issue reported on code.google.com by mneu...@gmail.com on 24 Dec 2010 at 1:46

GoogleCodeExporter commented 8 years ago
The problem is with evt.target.id.

Until I figure it out, a workaround is evt.target.getAttribute('id')

Original comment by grick23@gmail.com on 24 Dec 2010 at 7:52

GoogleCodeExporter commented 8 years ago
Fixed in r1284.

Original comment by grick23@gmail.com on 24 Dec 2010 at 8:45