| OLD | NEW |
| (Empty) |
| 1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> | |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R
EC-SVG-20010904/DTD/svg10.dtd"> | |
| 3 <svg xmlns="http://www.w3.org/2000/svg" onload="runTest()"> | |
| 4 <script> | |
| 5 function runTest() | |
| 6 { | |
| 7 var rect1 = document.getElementsByTagName("rect")[0]; | |
| 8 rect1.style.getPropertyCSSValue("fill").setRGBColor("blue"); | |
| 9 | |
| 10 var rect4 = document.createElementNS("http://www.w3.org/2000/svg", "rect
"); | |
| 11 rect4.setAttribute("x", "330"); | |
| 12 rect4.setAttribute("y", "0"); | |
| 13 rect4.setAttribute("width", "100"); | |
| 14 rect4.setAttribute("height", "100"); | |
| 15 rect4.setAttribute("style", "fill:green"); | |
| 16 | |
| 17 document.getElementsByTagName("svg")[0].appendChild(rect4); | |
| 18 } | |
| 19 </script> | |
| 20 | |
| 21 <!-- Assure that the first rectangle, turns blue, and the others stay green! --> | |
| 22 <rect x="0" y="0" width="100" height="100" style="fill:green"/> | |
| 23 <rect x="110" y="0" width="100" height="100" style="fill:green"/> | |
| 24 <rect x="220" y="0" width="100" height="100" style="fill:green"/> | |
| 25 </svg> | |
| OLD | NEW |