Runtime error in Internet Explorer

>I found a strange error today I started to get “runtime” error in internet explorer. I investigated the problem and found that the following row was causing the problem.

document.getElementById(“Body”).innerHTML=tmpHTML;
the tmpHTML variable contains some valid HTML and the Body tag was a span tag.
When looking into the problem some more I found that it is an IE bug so when I changed the tag from span to div, everything worked again.
Hope that this might help someone else so you don’t have to investigate alot.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>