You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our application we use clickable SVG icons. Because we tend to reuse each icon multiple times in the HTML but still want to style them with CSS, they are embedded as a single bundle and then referenced throughout the HTML.
For example, a bundle with a single icon would look like the following where each symbol is a standalone SVG icon:
Note that #myIcon references the symbol with id myIcon
Expected Behavior
The click handler is expected to be called whenever the user clicks in that icon.
Actual Behavior
This works fine in chrome and Firefox. However, most of our users use IE11.
In IE11, depending on which part of the icon is clicked, an error is thrown:
Object doesn't support property or method 'getAttribute'
File: util-browser.js, Line: 141, Column: 9
Bug Report
Context
In our application we use clickable SVG icons. Because we tend to reuse each icon multiple times in the HTML but still want to style them with CSS, they are embedded as a single bundle and then referenced throughout the HTML.
For example, a bundle with a single icon would look like the following where each
symbol
is a standalone SVG icon:To reference an icon in the bundle, one would write:
Note that
#myIcon
references the symbol with idmyIcon
Expected Behavior
The click handler is expected to be called whenever the user clicks in that icon.
Actual Behavior
This works fine in chrome and Firefox. However, most of our users use IE11.
In IE11, depending on which part of the icon is clicked, an error is thrown:
Possible Fix
I believe the bug is related to the behaviour described here: https://stackoverflow.com/questions/9275695/read-attributes-of-svg-elements-in-html-via-js
Additional Info
Your Environment
Steps to Reproduce
Stack Trace
The text was updated successfully, but these errors were encountered: