{"id":1940,"date":"2014-05-17T15:41:00","date_gmt":"2014-05-17T07:41:00","guid":{"rendered":"http:\/\/www.brofive.org\/?p=1940"},"modified":"2018-05-29T23:29:18","modified_gmt":"2018-05-29T15:29:18","slug":"ie8%e9%97%ae%e9%a2%98%ef%bc%9ahtml-parsing-error-unable-to-modify-the-parent-container-element-before-the-child-element-is-closed","status":"publish","type":"post","link":"http:\/\/www.brofive.net\/?p=1940","title":{"rendered":"IE8\u95ee\u9898\uff1aHTML Parsing Error: Unable to modify the parent container element before the child element is closed"},"content":{"rendered":"<p><font size=\"4\">\u9662\u5185\u4e00\u4e2a\u7ba1\u7406\u7f51\u7ad9\u5728IE8\u4e0b\u62a5\u9519\uff0c\u65e0\u6cd5\u6253\u5f00\u7f51\u9875\uff0c\u67e5\u8be2\u624d\u77e5\u9053\u53ef\u80fd\u662f\u7f51\u9875\u811a\u672c\u7684\u95ee\u9898\uff1a\u60c5\u51b51\u662fHTML\u6807\u7b7e\u6ca1\u6709\u95ed\u5408\uff1b\u60c5\u51b52\u662fJS\u4ee3\u7801\u4f4d\u7f6e\u4e0d\u5bf9\u3002\u8fd9\u4e2a\u95ee\u9898\u5728IE10\u4e0d\u51fa\u73b0\u3002\u6211\u4f7f\u7528\u4e86VPN\u8bbf\u95ee\u9662\u5185\u7f51\u7ad9\uff0c\u7f51\u901f\u8f83\u4f4e\uff0c\u6211\u6000\u7591\u53ef\u80fd\u662f\u7f51\u9875\u6ca1\u6709\u52a0\u8f7d\u5b8c\u6210\uff0c\u4f46\u662f\u811a\u672c\u5df2\u7ecf\u88ab\u52a0\u8f7d\uff0c\u51fa\u73b0\u8fd0\u884c\u9519\u8bef\uff0c\u5f52\u7ed3\u5230\u60c5\u51b52<\/font> <\/p>\n<p><font size=\"4\">=====\u539f\u59cb\u7ed3\u679c\u6765\u81ea\uff1a<\/font><a href=\"http:\/\/www.cnblogs.com\/acker\/archive\/2011\/07\/27\/2117927.html\"><font size=\"4\">http:\/\/www.cnblogs.com\/acker\/archive\/2011\/07\/27\/2117927.html<\/font><\/a> <\/p>\n<p><font size=\"4\">\u4e00\u3001<\/font> <\/p>\n<p><font size=\"4\">\u53c8\u6da8\u89c1\u8bc6\u4e86<br \/>IE8\u62a5\u4e0b\u9762\u9519\u8bef\uff0c\u800c\u4e14\u662f\u6211\u7684\u673a\u5668\u4e0d\u62a5\uff0c\u540c\u4e8b\u7684\u673a\u5668\u62a5\uff0c\u8bd5\u4e864\u53f0\uff0c\u4e24\u4e2a\u62a5\uff0c\u4e24\u4e2a\u4e0d\u62a5\uff0cIE\u7248\u672c\u90fd\u4e00\u6837\uff0c\u6ca1\u60f3\u660e\u767d<br \/>\u89e3\u51b3\uff1a<\/font> <\/p>\n<p><font size=\"4\">1\u3001\u67e5\u770b\u662f\u5426\u6709\u672a\u5173\u95ed\u7684html\u6807\u7b7e\uff0c\u6bd4\u5982&lt;table&gt;\u800c\u6ca1\u6709&lt;\/table&gt; (\u6211\u5c31\u662f\u8fd9\u4e2a\u539f\u56e0)<br \/>2\u3001\u662f\u5426\u5728\u9875\u9762\u672a\u52a0\u8f7d\u5b8c\u524djs\u4ee3\u7801\u64cd\u4f5c\u4e86body\u91cc\u7684\u5143\u7d20\uff0c\u5c06\u76f8\u5173js\u4ee3\u7801\u79fb\u5230&lt;\/body&gt;\u540e\u9762<br \/>\u7f51\u9875\u9519\u8bef\u8be6\u7ec6\u4fe1\u606f<br \/>\u7528 \u6237\u4ee3\u7406: Mozilla\/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident\/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)<br \/>\u65f6\u95f4\u6233: Wed, 14 Apr 2010 08:33:56 UTC<br \/>\u6d88\u606f: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)<br \/>\u884c: 0<br \/>\u5b57\u7b26: 0<br \/>\u4ee3\u7801: 0<br \/>URI: <br \/><\/font><a href=\"http:\/\/support.microsoft.com\/kb\/927917\"><font size=\"4\">http:\/\/support.microsoft.com\/kb\/927917<\/font><\/a> <\/p>\n<p><font size=\"4\">\u4e8c\u3001<\/font> <\/p>\n<p><font size=\"4\">\u5b83\u7684\u53d1\u751f\uff0c\u662f\u56e0\u4e3a\u67d0\u4e9bDOM\u64cd\u4f5c\u53d1\u751f\u5728DOM\u6811\u52a0\u8f7d\u5b8c\u6210\u4e4b\u524d\uff0c\u6bd4\u5982appendChild<\/font> <\/p>\n<p><font size=\"4\">\u5c31\u50cf\u4e0b\u9762\u7684\u4ee3\u7801\uff1a<\/font> <\/p>\n<p><font size=\"4\">&lt;html&gt;<br \/>&lt;head&gt;<br \/>&lt;\/head&gt;<br \/>&lt;body&gt;<br \/>&lt;div&gt;<br \/>&lt;script type=&#8221;text\/javascript&#8221;&gt;<br \/>&nbsp;&nbsp;&nbsp; alert(document.readyState);<br \/>&nbsp;&nbsp;&nbsp; var oDiv = document.createElement_x(&#8220;DIV&#8221;);<br \/>&nbsp;&nbsp;&nbsp; oDiv.innerHTML = &#8216;test odiv test odiv&#8217;;<br \/>&nbsp;&nbsp;&nbsp; document.body.appendChild(oDiv);<br \/>&lt;\/script&gt;<br \/>&lt;\/div&gt;<br \/>&lt;\/body&gt;<br \/>&lt;\/html&gt;<\/font> <\/p>\n<p><font size=\"4\">\u5f53\u89e3\u6790\u5230DIV\u65f6\u5c31\u5f00\u59cb\u5728BODY\u4e0aappendChild\uff0c\u800c\u8fd9\u4e2a\u65f6\u5019BODY\u662f\u8fd8\u6ca1\u6709\u5b8c\u5168\u5c31\u7eea\u7684\uff08It is not fully loaded\uff09\uff0c\u6587\u6863\u7ed3\u6784\u4ecd\u5728loading\u548cinteractive\u72b6\u6001\u4e4b\u95f4\uff0c\u4e8e\u662f\uff0c\u4fbf\u4f1a\u5f97\u5230\u4e0a\u8ff0\u9519\u8bef\u3002\u5f53\u7136\uff0c\u8be5\u9519\u8bef\u76ee\u524d\u5df2\u786e\u5207\u77e5\u9053\u7684\u4f1a\u5b58\u5728\u4e8eIE6\u548c IE7\u4e24\u4e2a\u7248\u672c\u4e2d\uff08\u4f4e\u4e8eIE6\u7684\u672a\u8fdb\u884c\u6d4b\u8bd5\uff09\uff0c\u5728IE8\u4e2d\u5c06\u4f1a\u5f97\u5230\u4e00\u4e2aHTML\u89e3\u6790\u9519\u8bef\uff1aHTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)<\/font> <\/p>\n<p><font size=\"4\">1.\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u53ef\u4ee5\u8fdb\u884cdocument.readyState\u72b6\u6001\u5224\u65ad\uff0c\u5f53\u5b83\u4e3acomplete\u65f6\u518d\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\uff0c\u6216\u8005\u7ed9script\u6807\u7b7e\u52a0\u4e0adefer\u5c5e\u6027\uff08\u8be5\u5c5e\u6027\u5728IE8\u4e2d\u5df2\u4e0d\u83b7\u652f\u6301\uff09\u3002<\/font> <\/p>\n<p><font size=\"4\">2.\u6216\u8005<\/font> <\/p>\n<p><font size=\"4\">js\u4e2d\u52a0\u5165\u4e86 setTimeout(&#8220;XXXX()&#8221;,1000);\uff0c\u4f7f\u5176\u83b7\u5f97\u8db3\u591f\u7684\u52a0\u8f7d\u65f6\u95f4\u540e\u6267\u884c\u76ee\u6807(XXXX)\u7684function\uff0c\u4e8e\u662f\u95ee\u9898\u5f97\u5230\u89e3\u51b3<\/font> <\/p>\n<p><font size=\"4\">\u6765\u6e90\uff1ahttp:\/\/blog.163.com\/xiao_mege\/blog\/static\/72942753201102491443802\/<\/font> <\/p>\n<p><font size=\"4\">==================\u7f51\u9875\u9519\u8bef\u8be6\u7ec6\u4fe1\u606f<\/font> <\/p>\n<p><font size=\"4\">\u7528\u6237\u4ee3\u7406: Mozilla\/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident\/4.0)<br \/>\u65f6\u95f4\u6233: Fri, 16 May 2014 15:22:18 UTC<\/font> <\/p>\n<p><font size=\"4\">\u6d88\u606f: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)<br \/>\u884c: 0<br \/>\u5b57\u7b26: 0<br \/>\u4ee3\u7801: 0<br \/>URI: <\/font><a><font size=\"4\">http:\/\/10.1.5.71:19086\/teamworks\/fauxRedirect.lsw?zWorkflowState=2&amp;zTaskId=t13313&amp;zComponentName=Coach&amp;zComponentId=3003.70d8bd51-16a8-4462-a363-4c8355ad6e03&amp;zDbg=0<\/font><\/a> <\/p>\n<p><font size=\"4\">\u6d88\u606f: &#8216;html()&#8217; \u4e3a\u7a7a\u6216\u4e0d\u662f\u5bf9\u8c61<br \/>\u884c: 132<br \/>\u5b57\u7b26: 2<br \/>\u4ee3\u7801: 0<br \/>URI: <\/font><a><font size=\"4\">http:\/\/10.1.5.71:19086\/teamworks\/webasset\/2064.bbe2c78f-256c-426a-9bf0-26253b9d174f\/W\/top.js<\/font><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9662\u5185\u4e00\u4e2a\u7ba1\u7406\u7f51\u7ad9\u5728IE8\u4e0b\u62a5\u9519\uff0c\u65e0\u6cd5\u6253\u5f00\u7f51\u9875\uff0c\u67e5\u8be2\u624d\u77e5\u9053\u53ef\u80fd\u662f\u7f51\u9875\u811a\u672c\u7684\u95ee\u9898\uff1a\u60c5\u51b51\u662fHTML\u6807\u7b7e\u6ca1\u6709\u95ed\u5408\uff1b\u60c5&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,149,289,20],"tags":[245],"views":3550,"_links":{"self":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1940"}],"collection":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1940"}],"version-history":[{"count":1,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1940\/revisions"}],"predecessor-version":[{"id":1941,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1940\/revisions\/1941"}],"wp:attachment":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1940"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}