IE8 - how to solve this KB927917

Does anyone here have a fix for this really annoying issue that cause parts of the site to not display, or cause that annoying dialog that it can’t display the site? Works fine in IE7, and of course Firefox…

Webpage Script Errors

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 23 Sep 2009 17:24:20 UTC

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

The error happen to me. IE8 somehow not loaded dom properly. So use your js framework to run the script after dom ready. In jquery, use

jQuery(document).ready(function () { /* your script goes here */ })

h ttp://

I get this problem when I use a particular skin - Tuga - on my Cubecart shop .What code do I need to add to my javascript file to correct it ?