OLD | NEW |
(Empty) | |
| 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xhtml="http://www.w3.org/1999/xhtm
l" onload="test()"> |
| 2 <script type="text/javascript"> |
| 3 function test() { |
| 4 if (window.testRunner) { |
| 5 testRunner.dumpAsText(); |
| 6 } |
| 7 |
| 8 var script = document.createElementNS("http://www.w3.org/2000/svg", "svg:scr
ipt"); |
| 9 script.type = "text/javascript"; |
| 10 if (script.type != "text/javascript" || script.getAttribute("type") != "text
/javascript") { |
| 11 document.getElementById("p0").innerHTML = "FAIL"; |
| 12 return; |
| 13 } |
| 14 |
| 15 script.setAttribute("type", "text/fooscript"); |
| 16 if (script.type != "text/fooscript" || script.getAttribute("type") != "text/
fooscript") |
| 17 document.getElementById("p0").innerHTML = "FAIL"; |
| 18 } |
| 19 </script> |
| 20 <foreignObject> |
| 21 <xhtml:p>Test that getting/setting the type JS property on SVGScriptElement keep
s sync with the type content attribute.</xhtml:p> |
| 22 <xhtml:span id="p0">PASS</xhtml:span> |
| 23 </foreignObject> |
| 24 </svg> |
OLD | NEW |