Internet Explorer Parser Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack html parsing error kb927917 Overflow the company Business Learn more about hiring developers or posting ads with us unable to modify the parent container element before the child element is closed ie8 Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Problem with HTML Parser in IE up vote 34 down vote favorite 10 I am trying to create a dialog box that will appear only if the browser selected is IE (any version) however I get this error: Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) That's all in "Line/Char/Code" 0 so I do not know where is the error. The code I'm using is this: I've noticed if I remove the "BrowserDetect.browser" and .version it removes the error, but I need those to check =/...any ideas will be appreciated =). javascript html-parsing share|improve this question asked Nov 19 '08 at 10:31 Tsundoku 2,7081663111 add a comment| 10 Answers 10 active oldest votes up vote 27 down vote accepted You're modifying document while it's being loaded (when browser hasn't "seen" closing tag for this element) . This causes very tricky situation in the parser and in IE it's not allowed. IE blog has explanation of this. The solution is to modify another element that's earlier in the document and has been loaded completely (where browser already saw closing tag for it). BTW: The string is not allowed in script element. Use <\/ which is a safe equivalent in JS strings. share|improve this answer answered Nov 20 '08 at 0:19 Kornel 62.7k24138200 add a comment| up vote 9 down vote I had this same problem. My issue was that I was calling a Javascript function
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up HTML parsing error in IE8(KB927917) up vote 2 down vote favorite Webpage error http://stackoverflow.com/questions/301484/problem-with-html-parser-in-ie details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727) Timestamp: Wed, 18 Jan 2012 05:02:49 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 URI: http://collaborize.collaborizeclassroom.com/portal/portal/collaborize/site/window?actionEvent=homePage&action=2&fpg=1&unId=umb8N95lhIoXOVKzTTrtcPoCrixd4wMdScQv8mEwqFT962zy3VSh4mzQNeugOWVV&ts=1326862916939&publishUrl=class2&siteName=class2&siteId=20941 I get the above problem only when i open and close the browser and log-in for the first time and even though i http://stackoverflow.com/questions/8905476/html-parsing-error-in-ie8kb927917 delete cache,cookies and history and login again i don't get the problem. is there something else other than the above that gets deleted when we close the browser because the error only comes when i login the first time after i open the browser internet-explorer-8 html-parsing share|improve this question edited May 6 '13 at 9:14 Sumit Bijvani 5,308133168 asked Jan 18 '12 at 5:09 Raviteja Avvari 16114 add a comment| 8 Answers 8 active oldest votes up vote 7 down vote Example: call document.body.appendChild when the page has not loaded. Need to call javascript when the page is loaded, example: document.body.onload = function() { document.body.appendChild(...) } share|improve this answer edited Dec 3 '12 at 13:54 Chris Moutray 11.7k62549 answered Aug 15 '12 at 12:05 John trambo 7112 Thx. This solution works. –Thanh Trung Oct 30 '12 at 10:35 add a comment| up vote 2 down vote Add few characters spaces in-between script tags to fix this. ie., space inbetween start and close script tags in case you are referring outside library using src attribute share|improve this answer answered Jul 2 '12 at 6:23 UmaKiran 32026 1 +1 I believe you are correct, do you know why? If so could you answer here: stackoverflow.com/q/12292649/985284 –Garrett
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/4384121/html-parsing-error-kb927917-ie8 this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up internet explorer HTML parsing error KB927917 IE8 up vote 6 down vote favorite I am getting this error in IE 8 . But not in all IE 8. In some system web page is working fine , some are not. Is it because of some settings. Enabling or disabling some script will do the magic? If anyone have gone through this error and solved :) please internet explorer parser suggest. javascript jquery ajax internet-explorer internet-explorer-8 share|improve this question asked Dec 8 '10 at 4:17 zod 5,697194886 1 Please post a link to the page with the problem. Also, try running your page through validator.w3.org –Paul Schreiber Dec 8 '10 at 4:22 1 Maybe you should let Microsoft know about this too, because IE8 is not supposed to get this message. ;P support.microsoft.com/kb/927917 –deceze Dec 8 '10 at 4:25 add a comment| 5 Answers 5 active oldest votes up vote 1 down vote accepted Your users may be running IE8 as IE7 compatibility mode, if that breaks the code you need to detect document.documentMode and branch a fix for IE7. To find the problem code, run it in compatibility mode yourself and use the IE8 debugger. share|improve this answer answered Dec 8 '10 at 6:50 kennebec 58.7k1563100 add a comment| up vote 8 down vote You have to check if the dom is loaded: $(function(){ ... }); I got the same error as well, I couldn't reproduce it on all IE8. But this solved it! share|improve this answer answered May 3 '11 at 8:14 Tom Ma