1 <!DOCTYPE HTML PUBLIC
"-//W3O//DTD W3 HTML 2.0//EN">
6 if (window
.layoutTestController
)
7 layoutTestController
.dumpAsText();
8 var result
= "TEST FAILED";
9 var image
= document
.getElementById("image");
11 var parent
= image
.parentNode
;
13 if (parent
.tagName
== "MAP")
14 result
= "TEST PASSED";
16 document
.getElementById("result").firstChild
.data
= result
;
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>