Calling cloneNode on feGaussianBlur corrupts the stdDeviation attribute

Issue #12944911 • Assigned to Steven K.

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.”

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

    Sign in