Axiu Blog
号~ ![KB927917.gif](https://farm4.static.flickr.com/3425/3991727908_6ac259e577.jpg) 错误的复制错误信息如下: > User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB
刚刚换上win7感觉挺不错的,没办法我就喜欢华丽的。但是遇到的问题也是有的,首当其冲是Chrome速度很慢,经常打字就会卡住几秒钟,所以换了FF3.0,配合的还有IE8。但是切换到IE8问题就来了。基本状况是页面加载不完,左下角有个黄色感叹号~ ![KB927917.gif](https://farm4.static.flickr.com/3425/3991727908_6ac259e577.j
刚刚换上win7感觉挺不错的,没办法我就喜欢华丽的。但是遇到的问题也是有的,首当其冲是Chrome速度很慢,经常打字就会卡住几秒钟,所以换了FF3.0,配合的还有IE8。但是切换到IE8问题就来了。基本状况是页面加载不完,左下角有个黄色感叹号~ ![KB927917.gif](https://farm4.static.flickr.com/3425/3991727908_6ac259e577.j
遭遇IE8的KB927917错误
Max

刚刚换上win7感觉挺不错的,没办法我就喜欢华丽的。但是遇到的问题也是有的,首当其冲是Chrome速度很慢,经常打字就会卡住几秒钟,所以换了FF3.0,配合的还有IE8。但是切换到IE8问题就来了。基本状况是页面加载不完,左下角有个黄色感叹号~

KB927917.gif

错误的复制错误信息如下:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; aff-kingsoft-ciba)
Timestamp: Tue, 7 Apr 2009 05:31:06 UTC

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

貌似在说HTML分析错误,在子元素关闭之前无法修改前父容器元素。

MSDN给出的解决办法:

官方给出的解决办法如下:(From MSDN)

1. Moving your script execution to a function that is invoked after parsing is complete (e.g., onload)

2. Adding the defer boolean attribute to the script block (this defers execution of the script content until parsing is complete)

3. Limiting your tree modifications to the script-element’s immediate parent

4. Moving the location of your script block to a child of the body (this usually solves most problems, while allowing the most flexibility in terms of scenarios).

出现这个问题的原因是JavaScript的解析IE是边读边执行的,所以如果脚本允许修改父元素,并且子元素又没关闭的话,会出现问题,逻辑有错。例如在 Windows官方帮助 中提到:

在此示例,深层嵌套的 TD 容器元素内的一个 SCRIPT 块会尝试通过 appendChild 方法中修改父容器 BODY 元素。

……

要解决此问题,请在 BODY 元素中移动 SCRIPT 块。

所以,虽然我没有什么经验,但是凭感觉应该是后来加上的旁边follow按钮的问题(JS写的),它在某个元素有加载完就关闭了,所以就试着把该段JS代码换个地方,或者往下移。

问题解决了。

Comments