Home > Article > Web Front-end > innerHTML_javascript trick for IE bug table element
First of all, there is the erratic collapsing border. There is one thing about IE6 that is different from other browsers. An ugly border is displayed no matter what. No solution.
If the above problem can be solved in a weird way, then there will be no solution at all.
Since it involves asynchronous transmission and real-time display of data, I wrote a front-end template to dynamically update the data through innerHTML. All other browsers work fine, but IE cannot get data out of it. After a long time of troubleshooting, the result is that the table element of IE is read-only and innerHTML cannot be used! ! ! !
Elements that are also read-only include COL, COLGROUP, FRAMESET, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR, etc.
Is this a bug in IE or is this how it should be⋯⋯ Tired⋯⋯
Finally switched to ul, the world is beautiful⋯⋯