Unspecified error in IE when setting innerHTML element in JS

Setting innerHTML in javascript is a very simple task, basically you just use the javascript
document.getElementByID(‘id’).innerHTML=”Some new text”
But lately we discovered a very strange problem when trying to set the HTML. The HTML we tried to set was this, and the span element is in there for CSS Display purposes.
document.getElementByID(‘id’).innerHTML=”<span>Some new text</span>”
As usual this works fine [...]