<!DOCTYPE html>
<html>
<body>
Test passes if it does not crash.
<input id="x" type="image" onerror="x.type=''" src="" />
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
</body>
</html>