blob: 7ef32ad04ce8aafb6339f9e87830c5375b19a319 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<html>
<script>
function runTest()
{
if (window.testRunner)
testRunner.dumpAsText();
var result = "TEST FAILED";
var image = document.getElementById("image");
if (image) {
var parent = image.parentNode;
if (parent)
if (parent.tagName == "MAP")
result = "TEST PASSED";
}
document.getElementById("result").firstChild.data = result;
}
</script>
<body onload="runTest()">
<map><img id="image" alt="x" height="10" width="10" border="1"></map>
<p>This tests that images are allowed in map elements even in strict mode.</p>
<p id="result">TEST NOT RUN</p>
</body>
</html>