IE bug

I’m not sure about anyone else, but this happens to me all the time.
Let’s say you have some div

<div id=“xyz”>hi</div>

and you create xyz variable in javascript, IE will confuse xyz variable in javascript with xyz id of the html code. Is there anyone who has experienced this?

I say this is only IE bug, because this doesn’t happen in Firefox, and I’m sure it also wouldn’t happen in Opera.