BUG Note: HTML Parsing Error: Unable to modify the pa under Win XP IE8

Source: Internet
Author: User

[Bug description] In some versions of Windows XP IE8, only some pages are displayed, while others are blank. There is an error mark in the lower left corner of IE. The following characters are displayed after you click it:

HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) Line: 0 Char: 0 Code: 0 URI :......


Some people on StackOverflow say that Internet Explorer officially provided that when HTML loading is incomplete, inserting a new HTML tag with JS may be deemed by the browser that the parent tag is not closed and an error is reported to stop loading. Really, it hurts...

However, IE8 should have been fixed later, because it was only found on some machines.


However, I proposed it today because I encountered this bug not because a segment was inserted in the page. JS, such as appendNode, is caused by response in IE8 for pages, that is, to allow IE8 to support media query, we use a Respond. js plugin: https://github.com/scottjehl/Respond

If this happens, the solution is simple. Put the script tag that references Respond. js at the bottom of the page.

In fact, JS references should be placed at the bottom of the page to improve the performance of the page, except that the header must be placed like Mordernizr.

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.