When I call cloneNode()
on an element with the name feGaussianBlur
that has the attribute stdDeviation
, InternetExplorer (10 and 11) always converts the value to 1.72443e+009
.
Here is a four-liner that illustrates the problem: https://jsfiddle.net/kytbh4Ls/6/
If you change the element name, use a different attribute name or run the fiddle on any other browser (Chrome, Firefox), everything runs as expected. Using a different attribute value will not change anything.
What could be the reason for this really strange behaviour? And is there something that can be done about it?
Here a modified fiddle using jQuery's clone()
instead of cloneNode()
, unfortunately producing the same result: https://jsfiddle.net/kytbh4Ls/7/
This is a clear bug in Internet Explorer. While it is true that Internet Explorer uses the stdDeviation
instead of stdDeviationX
and stdDeviationY
, the cloneNode()
function has no business in messing around with the attributes. It should return a clone of the node, not a node with changed attributes.
You should report this to the Internet Explorer development team (if you have the the time to do so). Currently all you can probably do is to implement a manual workaround.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With