foreign_content_009.html (1411B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>HTML 5 Foreign Content SVG in HTML </title> 5 <meta description="Test to verify SVG Self Closing tags parses properly" /> 6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 7 8 <script type="text/javascript"> 9 function RunTest() 10 { 11 try 12 { 13 var parentNode = document.getElementById("rect1"); 14 if(parentNode.childNodes[1].localName=="circle") 15 { 16 document.getElementById("testresult").innerHTML = "PASS"; 17 } 18 else 19 { 20 document.getElementById("testresult").innerHTML = "FAIL" 21 } 22 } 23 catch(ex) 24 { 25 document.getElementById("testresult").innerHTML = "FAIL"; 26 } 27 } 28 </script> 29 </head> 30 31 <body onload="RunTest()"> 32 <div class="testdata"> 33 <p id="instructions"> Test passes if the word "PASS" appears below </p> 34 <p> Test Result : </p> 35 <p id="testresult"> RUNNING </div> 36 </div> 37 38 <svg width="100px" height="100px"> 39 <rect id="rect1" > 40 <circle> </circle> 41 </rect> 42 </svg> 43 44 </body> 45 46 </html>