IE 8 HTML parsing error: Unable to modify the parent container element before the child element is cl

Source: Internet
Author: User
I. error message prompt
Under IE8
Message: HTML parsing error: Unable to modify the parent container element before the child element is closed (kb927917)
Row: 0
Character: 0
Code: 0
Uri: XXX

IE6/7
Internet Explorer cannot open the Internet site xxx

Ii. Background
1. Page a introduces page B through IFRAME
2. Page B loads the JS File A. js using the document. Write () method
3. Call the func function in A. js at the bottom of page B for initialization, and call the appendchild function to operate the parent page.

Iii. Solution
Cause: some Dom operations occur before the DOM tree is loaded, such as appendchild.
Problem location: When page B has not loaded the. js file, the parent page a is operated.
Solution: Change the initialization method to setTimeout (func, 0 );

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.