<img id="x" src="broken.gif">
This text should only appear once.
<script>
document.write(document.getElementById("x").innerText);
</script>
<img id="x" src="broken.gif">
This text should only appear once.
<script>
document.write(document.getElementById("x").innerText);
</script>