21 lines
711 B
XML
21 lines
711 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<svg xmlns="http://www.w3.org/2000/svg" onload="init()">
|
|
|
|
<script>
|
|
var d;
|
|
function init()
|
|
{
|
|
var polyline = document.createElementNS("http://www.w3.org/2000/svg", "polyline");
|
|
polyline.setAttribute("points", d);
|
|
var g = document.getElementById("container");
|
|
g.appendChild(polyline);
|
|
// verify that the script arrived here without error by filling the rectangle with green
|
|
document.getElementById("passed").setAttribute("fill", "green");
|
|
}
|
|
</script>
|
|
|
|
<rect id="passed" x="0" y="0" width="100" height="100" fill="red"/>
|
|
<g id="container"></g>
|
|
|
|
</svg>
|