Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / fast / parser / strict-img-in-map.html
blob2df4446cd30fd33cc4e5a1a7c6496a3b0aaea4ff
1 <!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
2 <html>
3 <script>
4 function runTest()
6 if (window.layoutTestController)
7 layoutTestController.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>