setAttributeNS not rendering SVG element properly when using setAttributeNS
Reported by
s...@ffctn.com,
Feb 9 2018
|
|
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36
Steps to reproduce the problem:
1. create an SVG element using document.createElementNS("http://www.w3.org/2000/svg", "text")
2. set the attribute using setAttributeNS("http://www.w3.org/2000/svg", "x", 50)
3. Add the element to an svg element
4. Notice that the element isn't rendered as expected
What is the expected behavior?
The element is rendered in the same way that it would be if using setAttribute or setAttributeNS(null,"x",50)
What went wrong?
The element isn't rendered as expected, the attributes set using this manner seem to be completely ignored, although they are present when inspecting the DOM with the dev tools.
test case: https://codepen.io/duprasa/pen/rJyzWM
Did this work before? N/A
Does this work in other browsers? No
Same behavior across all the other browsers tested (safari 11, edge, Firefox 58)
Chrome version: 64.0.3282.140 Channel: stable
OS Version: ubuntu 16.04 LTS
Flash Version:
,
Feb 9 2018
Cool, thanks! Just wanted to clear that up :) |
|
►
Sign in to add a comment |
|
Comment 1 by f...@opera.com
, Feb 9 2018