<span id='a'><img src='b.gif' /></span>
<script>
alert(document.getElementById('a').innerHTML);
</script>
The output is: <img src="b.gif" />
'b.gif' is being shown as "b.gif"
Viewing the source code in FireBug also shows double quotes. Why is this happening?