JS compatible ie8-unknown run-time error

Source: Internet
Author: User

Encountered "Unknown run-time error" processing in IE8 that has innerHTML thrown:

Trigger situation: Mainly use this property label "inclusive" is not high, often caused by table,tr,td,form, especially the need to change the content inside these tags is most prone to occur, so what we need to do is to avoid the innerhtml of these tags to modify, we recommend using Div , span this type of "inclusive" higher label.

Like a form tag, you can change the form label to a DIV tag if you want to use innerHTML for the label inside the form.

The related processing of table is to use innerHTML directly to the parent container div of table, not to use innerHTML for other labels in table.

JS compatible ie8-unknown run-time error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.