I attempt to fix a bug in IE8 that erases the white space in an element when I use innerHTML
one example in html:
Association football is a
<b>
<span >Association football</span>
</b>
<span>
is a
</span>
when I do this in javascript:
spans=document.getElementsByTagName('span');
for (var i=0;i<spans.length; i++){
spans[i].outerHTML = spans[i].innerHTML;
}
the results are
Association footballis a
and I need that it not remove the whitespace
ball is
There is a bug and you can see that http://support.microsoft.com/kb/276228