<html> | |
<body> | |
<p>test for <a href="rdar://problem/4065447">4065447</a> (support outerHTML on IMG elements)</p> | |
<p>If the test fails, you'll see a Mozilla logo; if it succeeds, you'll see an Apple logo.</p> | |
<img id="anImage" src="resources/mozilla.gif"> | |
<script type="text/javascript"> | |
var anImage = document.getElementById("anImage"); | |
var outerStr = "<img id='anImage' src='resources/apple.gif'>"; | |
anImage.outerHTML = outerStr; | |
</script> | |
</body> | |
</html> |