日期:2014-05-17  浏览次数:20755 次

HTML Parsing Error: Unable to modify the parent container element before the chi
在我给页面中传递2个参数,就返回这个错 我的那个页面 就一框架啥都没 
就报了
消息: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
行: 0
字符: 0
代码: 0
URI: http://www.lifeya.com/index.php/MyInvitation/index/xiangxi/26304401.%20L.T.%20http:%5E%5Eprofile.img.mixi.jp%5Ephoto%5Emember%5E44%5E1%5E26304401_1619483854s.jpg/abc/29385005.%20appler@iPad買った.%20http:%5E%5Eprofile.img.mixi.jp%5Ephoto%5Emember%5E50%5E5%5E29385005_1462979441s.jpg--25527361.%20undefined.%20null--24213888.%20まー.%20http:%5E%5Eprofile.img.mixi.jp%5Ephoto%5Emember%5E38%5E88%5E24213888_3633773797s.jpg--23863079.%20undefined.%20null--23109519.%20はぁか.%20http:%5E%5Eprofile.img.mixi.jp%5Ephoto%5Emember%5E95%5E19%5E23109519_3628928092s.jpg--929315.%20ミヤノツル.%20http:%5E%5Eprofile.img.mixi.jp%5Ephoto%5Emember%5E93%5E15%5E929315_3706899038s.jpg

页面代码是
.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>shoumian</title>
</head>

<frameset rows="100,*" frameborder="no" border="0" framespacing="0">
  <frame src="http://www.lifeya.com/index.php/MyInvitation/top" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />

  <frame src="http://www.lifeya.com/index.php/MyInvitation/index/xiangxi/{$xiangxi}/abc/{$abc}" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<body>
</body>
</html>
为啥会报这个错

------解决方案--------------------
问题不在这段代码,而是src跳转后的代码中操作了还未加载完成的元素。
要注意代码执行和元素加载的顺序。