1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <svg xmlns=
"http://www.w3.org/2000/svg" onload=
"init()">
3 <script type=
"text/ecmascript"><![CDATA[
6 var polyline = document.createElementNS(
"http://www.w3.org/2000/svg",
"polyline");
7 var polygon = document.createElementNS(
"http://www.w3.org/2000/svg",
"polygon");
8 if (polyline ==
"[object SVGPolylineElement]" &&
9 polygon ==
"[object SVGPolygonElement]") {
10 document.getElementById(
"passed").setAttribute(
"fill",
"green");
14 <rect id=
"passed" x=
"0" y=
"0" width=
"100" height=
"100" fill=
"red"/>