+ 4

What's wrong with appending circle to svg?

Why circle isn't appended to svg? Please help https://code.sololearn.com/W2H6oFyuF4kl

29th Jan 2018, 8:12 PM
Amadeus
Amadeus - avatar
5 ответов
+ 2
The circle exists. It's just hidden because it has an ending tag. Use this to create new element. var circ = document.createElementNS("http://www.w3.org/2000/svg", 'circle');
29th Jan 2018, 9:00 PM
Toni Isotalo
Toni Isotalo - avatar
+ 6
Thanks very much!
29th Jan 2018, 9:02 PM
Amadeus
Amadeus - avatar
29th Jan 2018, 9:11 PM
Amadeus
Amadeus - avatar
0
Wow you're fast. I like it
29th Jan 2018, 9:12 PM
Toni Isotalo
Toni Isotalo - avatar