I have following , which works in chrome and other browsers but not in IE 11. I'm not sure which part of this code IE doesn't support. In all the other browsers i get svgimageclicked in console log but get an error in IE:
unable to get property 'getAttribute" of undefined or null reference
<div id='content' data-attribute="svgimageclicked">
<svg .......
</div>
document.getElementById('content')
.addEventListener('click', this.handle_click.bind(this));
handle_click(event){
console.log(event.target.parentElement.getAttribute('data-attribute');
}
