+ 2

Why the following code doesn't adds svg element created using js? [Solved]

https://code.sololearn.com/WJa092V6bMZe/?ref=app

19th Sep 2020, 5:51 PM
Abhay
Abhay - avatar
2 Respostas
+ 2
Try this var xmlns="http://www.w3.org/2000/svg"; var path=document.createElementNS(xmlns ,"path");
19th Sep 2020, 6:10 PM
Ruba Kh
Ruba Kh - avatar
0
19th Sep 2020, 7:25 PM
Abhay
Abhay - avatar