注册 登录
编程论坛 JavaScript论坛

HTML Parsing Error: Unable to modify the parent container element before the chi

to_change 发布于 2011-01-04 17:26, 2283 次点击
IE8提示消息:
 HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
行: 0
字符: 0
代码: 0
URI: http://127.0.0.1:8080/***/***/***.do
相信大家在未来或者已经遇到过这个问题
根据IE8的错误提示来看,应当是元素尚未加载完必时对其进行了操作。
解决的办法就是将一些加载时执行的方法修改为在页面加载完成时执行,或者在指定的一个时间执行
document.readyState是页面加载的状态,当其值为complete时执行你的方法就ok了
还有setTimeout('',3000)将你的方法延时几秒钟执行,也ok了
但是为什么IE8会有如此的bug,让人费解。

0 回复
1