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

3 comments:

David 08 July, 2009 15:37  

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

longge 28 October, 2010 11:10  

http://uggloveshoes.vox.com/
http://uggshoe.vox.com/
http://uggloveshoes.webs.com/apps/blog/
http://warmugg.webs.com/apps/blog/
http://uggloveshoes.weebly.com/
http://ugggg.weebly.com/
http://uggloveshoes.wordpress.com/
http://uggloveboots.wordpress.com/
http://pulse.yahoo.com/_AYKQMFYOZ26I3OTTDFMBU4QBDQ/blog/
http://pulse.yahoo.com/_RDDQ2DFI4RDOV4Y2L47DLPM6C4/blog/

123 11 November, 2010 09:45  

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/

  © Blogger templates 'Sunshine' by Ourblogtemplates.com 2008

Back to TOP