Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / new-image-is-html-element.svg
blobde3985baafb6f857c848c921d3ff0e76503d81a6
1 <svg xmlns="http://www.w3.org/2000/svg">
2 <text id="result" y="100"/>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 // Ensure that "new Image()" is creating an HTML image element regardless
8 // of the current doctype.
10 var pass = "[object HTMLImageElement]" == new Image();
11 document.getElementById("result").appendChild(document.createTextNode(pass ? "PASS" : "FAIL"));
12 </script>
13 </svg>