[IE8] HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)

On one of my pages IE8 was not rendering content properly- like all the CSS styles were ignored. The error shown by the browser was:

HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)

After playing around a bit I found out Internet Explorer had problems with Javascript. So I put all JS from <script> tag inside jQuery’s:

$(document).ready(function()
{
	//code here
});

And it helped. All other browsers (Opera, Firefox) did not need it, but IE is retarded and seems it can’t render content properly without it.

This entry was posted on Sunday, May 6th, 2012 at 5:49 pm and is filed under JavaScript. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses to “[IE8] HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)”

  1. Anandh Says:

    The error is not because of Script issue.

    Please check you have closed all the or or other HTML tags properly.

  2. Jason Thai Says:

    This post saved me from hours of research, thank you for sharing :)

  3. nipa Says:

    this is realy work and i solve my problem which is arise only IE8

Leave a Reply

 
TopOfBlogs Web Development & Design Blogs