KB927917

Today i ran into this warning when testing IE7 compatibility for a web project:

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

The problem is that the site has some JavaScript code that tries to modify the parent of a DOM-node from the a child node before the child is finished loading. Here's a short example of a how to get the error:

The content will still be replaced but with a warning in the console. To get rid of the warning just move the script out to the parent container, ie.

OR, even better, use body.onload or jQuery(document).ready.
If you want more information about this problem head over to Microsoft's support site:
http://support.microsoft.com/default.aspx/kb/927917

Comments

David said…
It seems also a pb relative to YOUTUBE and other embedded medias, check out:

http://www.eastwoodzhao.com/day-4-internet-explorer-youtube-compatibility-issue-fixed/

http://drupal.org/node/157007
123 said…
http://remind.com.br/projetos/criar-blog-gratis/replicahandbags69/
http://remind.com.br/projetos/criar-blog-gratis/ureplicawatches/
http://remind.com.br/projetos/criar-blog-gratis/ureplicawatches1987/
http://replbags.livejournal.com/
http://replcawatche.livejournal.com/
http://repldbags.livejournal.com/
http://replica69bags.insanejournal.com/
http://replicabag242.livejournal.com/
http://replicacheap.21classes.com/weblogCategory/1951uut1lrg4t
http://replicacheap.ayubd.com/

Popular posts from this blog

jQuery floating table header plugin

Cubing for charity #4

No URL showing in GWT 2.0 Development mode