| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd"> |
| <svg version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" |
| xmlns:xlink="http://www.w3.org/1999/xlink" |
| xmlns="http://www.w3.org/2000/svg" onload="myfunc()"> |
| <script> |
| function myfunc() { |
| var myRect = document.getElementById("rect"); |
| myRect.setAttribute("d", "M5 260 C40 260 60 175 55 160 c -5 15 15 100 50 100Z"); |
| } |
| </script> |
| <path id="rect" d="M 100 100 L 300 100 L 200 300 z" fill="red" /> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |
| |