Calling cloneNode on feGaussianBlur corrupts the stdDeviation attribute

Confirmed Issue #12944911 • Assigned to Bogdan B.

Details

Author
Jesse C.
Created
Jul 26, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

If an <feGaussianBlur> node is cloned using the cloneNode method, the value of its stdDeviation attribute becomes 1.40709e+014 regardless of the original value. The following code demonstrates this:

var blur = document.createElementNS('http://www.w3.org/2000/svg', 'feGaussianBlur');
blur.setAttributeNS(null, 'stdDeviation', '10');
var clone = blur.cloneNode(true);
console.log(blur.getAttributeNS(null, 'stdDeviation'));
console.log(clone.getAttributeNS(null, 'stdDeviation'));

The expected output from this script is:

10
10

The actual output is:

10
1.40709e+014

I’ve also put this on codepen for convenience: https://codepen.io/jessecrossen/pen/wqaJje

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “travil”

      Changed Assigned To from “travil” to “Travis L.”

      Changed Assigned To to “bbrinza”

      Changed Status to “Confirmed”

      Changed Assigned To from “bbrinza” to “Bogdan B.”

    • I just stepped on this issue in IE11. In addition to “stdDeviation” in , I also observe identical problem with “radius” value in . In my case, calling cloneNode() in IE11 replaces original value of those attributes with 1.88472e+009. Is there any chance this may be fixed in some sort of IE11 patch ? Perhaps, there is a work-around I could use ? This problem is a big obstacle in completing large svg project. I’d appreciate any comment/help.

    • It looks like first post did not come through correctly. Here it is again:

      I just stepped on this issue in IE11. In addition to “stdDeviation” in feGaussianBlur, I also observe identical problem with “radius” value in feMorphology element. In my case, calling cloneNode() in IE11 replaces original value of those attributes with 1.88472e+009. Is there any chance this may be fixed in some sort of IE11 patch ? Perhaps, there is a work-around I could use ? This problem is a big obstacle in completing large svg project. I’d appreciate any comment/help.

    You need to sign in to your Microsoft account to add a comment.

    Sign in