<svg xmlns="http://www.w3.org/2000/svg"> | |
<text id="result" y="100"/> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
// Ensure that "new Image()" is creating an HTML image element regardless | |
// of the current doctype. | |
var pass = "[object HTMLImageElement]" == new Image(); | |
document.getElementById("result").appendChild(document.createTextNode(pass ? "PASS" : "FAIL")); | |
</script> | |
</svg> |