Error message: htmlfile:Unknown runtime error
An unknown runtime error occurs when innerhtml is assigned a value.
This is where Ie is depressing and disgusting:
In ie, the interface is often changed through innerhtml.
However, the above errors often occur, but not in Firefox.
This is because when ie writes innerhtml, it checks whether the element meets the requirements of the HTML object container in the content,
For example, if <p> is used as the container and its innerhtml is placed in <li>, an error will occur immediately.
Even more depressing:
<Table> <tbody> <tr> cannot be used as an innerhtml container in IE.
None of them can be added to the correct <TD>
However, <TD> can be used as a container to put innerhtml including <Table>
Solution
1. Make sure that the HTML in innerhtmlCodeCorrect;
2. Ensure that the container containing innerhtml is correct:Generally, <div>, <span>, <TD>, and <p> are not used.