Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / strict-img-in-map.html
blob7ef32ad04ce8aafb6339f9e87830c5375b19a319
1 <!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
2 <html>
3 <script>
4 function runTest()
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 var result = "TEST FAILED";
9 var image = document.getElementById("image");
10 if (image) {
11 var parent = image.parentNode;
12 if (parent)
13 if (parent.tagName == "MAP")
14 result = "TEST PASSED";
16 document.getElementById("result").firstChild.data = result;
18 </script>
19 <body onload="runTest()">
20 <map><img id="image" alt="x" height="10" width="10" border="1"></map>
21 <p>This tests that images are allowed in map elements even in strict mode.</p>
22 <p id="result">TEST NOT RUN</p>
23 </body>
24 </html>