0

commenting in svg does not work on sololearn

try this yourself and you will see what I mean <svg width="1000" height="250"> <rect width="150" height="150" fill="orange"> <animate attributeName="x" from="0" to="300" <!--comment in code--> dur="1s" fill="freeze" repeatCount="3"/> </rect> </svg>

17th Jan 2017, 1:14 PM
D G D
D G D - avatar
1 ответ
+ 1
It does, but may depends of browsers/devices, because YOUR code is INVALID: you can't put a html comment inside a tag ^^ which can have only attribute in it... Fortunaly, browser try to repair malformed documents, but don't ever succeed :P
17th Jan 2017, 3:47 PM
visph
visph - avatar