<a href="http://foo.bar/">
<div id='example-bug'>
Hello, world.
</div>
</a>
<script type="text/javascript">
document.getElementById('example-bug').innerHTML='Hey, world.';
alert(document.getElementById('example-bug').innerHTML); // will return <a>Hey, world.</a> in firefox
</script>