IE version : 8.0.6001.18702
<tr id="week-days"></tr>
function displayWeekDay( lang )
{
var txt = '<td>num</td>';
for ( i = 0; i < langs[lang].day.length; i++ )
if ( i == 5 ) txt += '<td class="red"><b>' + langs[lang].day[i] + '</b></td>';
else if ( i == 6 ) txt += '<td class="red"><b>' + langs[lang].day[i] + '</b></td>';
else txt += '<td><b>' + langs[lang].day[i] + '</b></td>';
document.getElementById("week-days").innerHTML = txt;
}
The error is in the last line - document.getElementById("week-days").innerHTML = txt;
I`m a little bit confused - there is an error, but everything is displaying properly. There is no error on Mozilla, Chrome, Safari. Any idea will apreciated.
edit