开发者

IE ierror with parsing html

i get this error HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) when try to run my project in visual studio 2010.

but ONLY when run in virtual mashine! otherwise same source code doesn't yield sa开发者_JAVA百科me error

NOTE: IE 8 Advance settings are same for both configurations!

help


Have you read KB927917? It describes the situation quite well; it's a more helpful error message than the “Operation aborted” we used to get, anyway. See this blog for more background on what it means.

It's not directly connected to virtual-machine or not; what you have is a race condition, where a script can load too early and try to manipulate elements that haven't been fully loaded by IE's HTML parser yet. Race conditions are inherently difficult to pin down as factors like being in a VM or how fast the server is responding can affect whether the error occurs or not.

You need to narrow down which script is responsible by commenting all the <script> elements out and adding them back in one-by-one until you get the error. Then you need to delay the operation of whatever that script is doing, for example by moving it into a window.onload event handler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜