OLD | NEW |
(Empty) | |
| 1 <svg xmlns="http://www.w3.org/2000/svg"> |
| 2 <text id="result" y="100"/> |
| 3 <script> |
| 4 if (window.layoutTestController) |
| 5 layoutTestController.dumpAsText(); |
| 6 |
| 7 // Firefox, Opera, and Safari all treat "new Image()" as creating an |
| 8 // HTML image element regardless of the current doctype. Ensure that |
| 9 // Chrome's behavior is the same |
| 10 |
| 11 var pass = "[object HTMLImageElement]" == new Image(); |
| 12 document.getElementById("result").appendChild(document.createTextNode(pass ?
"PASS" : "FAIL")); |
| 13 </script> |
| 14 </svg> |
OLD | NEW |