| <?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%" |
| xmlns:xlink="http://www.w3.org/1999/xlink" |
| xmlns="http://www.w3.org/2000/svg" onload="mytest()"> |
| <script> |
| function mytest() { |
| var myText = document.getElementById("passed"); |
| myText.setAttribute("x", "100"); |
| myText.setAttribute("y", "100"); |
| myText = document.getElementById("failed"); |
| myText.setAttribute("x", "-10"); |
| myText.setAttribute("y", "-10"); |
| } |
| </script> |
| <text x="-10" y="-10" id="passed">Passed</text> |
| <text x="100" y="100" id="failed">Failed</text> |
| </svg> |
| |