OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <svg xmlns="http://www.w3.org/2000/svg"> | |
3 <script type="text/javascript"> | |
4 <![CDATA[ | |
5 if (window.testRunner) | |
6 testRunner.dumpAsText(); | |
7 var txt = document.createElementNS('http://www.w3.org/2000/svg', "text"); | |
8 txt.setAttribute("id", "console"); | |
9 txt.textContent = "PASS"; | |
10 document.rootElement.appendChild(txt); | |
11 var ie = document.createElementNS('http://www.w3.org/2000/svg', "image"); | |
12 ie.onerror = function() { document.getElementById("console").textContent = "
FAIL"; } | |
13 ie.setAttribute("x", "0"); | |
14 ie.setAttribute("y", "0"); | |
15 ie.setAttribute("width", "100"); | |
16 ie.setAttribute("height", "100"); | |
17 ie.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:base", "resou
rces/"); | |
18 ie.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "green-check
er.png"); | |
19 document.rootElement.appendChild(ie); | |
20 ]]> | |
21 </script> | |
22 </svg> | |
OLD | NEW |