<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function test() {
    if (window.eventSender) {
        eventSender.mouseMoveTo(100, 100);
        eventSender.mouseDown();
        eventSender.mouseUp();
    }
}

function fail() {
    document.getElementById("log").innerHTML = "FAIL. usemap attribute is not ignored.";
}
</script>
</head>
<body onload="test()">
<p>Tests the usemap attribute on the img element if it has a valid has-name reference. HTML5 specification says we should ignore usemap attributes without #. Click the image to test.</p>
<div id=log>SUCCESS. usemap attribute is ignored.</div>
<div>
<img id="img" width="300" height="200" usemap="map" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAxJREFUCNdjYKhnAAABAgCAbV7tZwAAAABJRU5ErkJggg=="/>
</div>
<div id="mapHolder"><map name="map"><area shape="rect" coords="0,0,300,200" alt="" href="javascript:fail()"></map></div>
</body>
</html>
