<html> | |
<head> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
function test() { | |
var shadow = host.attachShadow({mode: "open"}); | |
shadow.innerHTML = '<map name="bar"></map><img usemap="#bar">'; | |
host.remove(); | |
} | |
</script> | |
</head> | |
<body onload="test()"> | |
This test passes if it doesn't crash. | |
<map id="map" name="foo"></map> | |
<img usemap="#foo"> | |
<div id="host"></div> | |
</body> | |
</html> |