Hello i have such problem, i need to make empty some of my elements in document, when i am trying to do this in IE 11 it fails with error Unknown runtime error
on 3rd line.
js
var element = document.getElementById('sum');
alert(element.innerHTML);
element.innerHTML = '';
and html
<table>
<thead></thead>
<tbody id="sum">
</tbody>
</table>
In alert i see <TBODY></TBODY>
. This code works in google chrome and firefox, but not in IE, how i can fix this problem?
Thank you for help.