måndag 16 maj 2011

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.

Inga kommentarer:

Skicka en kommentar