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>
1 Respuesta
+ 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