| 1 |
<svg xmlns="http://www.w3.org/2000/svg" id="root" width="100" height="100" viewBox="0 0 100 100"> |
| 2 |
<rect id="r" width="100" height="100" fill="green"> |
| 3 |
<set attributeName="fill" to="red"/> |
| 4 |
</rect> |
| 5 |
<script>document.getElementById("r").setAttribute("fill", "red");</script> |
| 6 |
</svg> |