Internet Explorer 8 Html Parsing 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 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 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 before the containing div was closed. To fix the problem, I call the Javascript function within the jQuery ready event handler: $(document).ready(function(){ some_random_javascript_function(); }); share|improve this an
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 IE8 - html parsing error: Unable to modify the parent container element before the child up vote 0 down vote favorite Apologies for posting http://stackoverflow.com/questions/301484/problem-with-html-parser-in-ie a question that has been dealt with several times in the past, but I have looked through the answers I could find on stack overflow and still cannot fix it. My problem is the same as the others have had (such as HTML parsing error). I am using jQuery and this is causing the error. I have tried fixes such as this, which recommends that I wrap my jQuery in $(document).ready(function(){ }, but this does http://stackoverflow.com/questions/15088208/ie8-html-parsing-error-unable-to-modify-the-parent-container-element-before-t not fix the issue. I am including a php file just before the body tag of my document which sets the headers as JavaScript, sets up some variables and then requires two .js files (which contain various functions, function calls and event triggers). I have tried wrapping the whole of the JS output in the document ready function but still get the same problem. I have also tried only using the function around function calls or anything that looks like it tries to access a DOM element before the document is loaded (i.e. function calls to functions that access the DOM elements but no the functions themselves) but this does not work either. I would like to know (i) is there any reason why wrapping all of my jquery in the document ready function should not fix the problem (as copied below)? and (ii) is there any way to debug what exactly is causing the error? Thanks! echo '$(document).ready(function() { '; echo 'var station_report_pref = "' . $station . '"; var dropdowns_choose = "'.get_string('dropdowns_' . $choose_or_all, 'theme_pichincha').'"; var dropdowns_ok = "'.get_string('dropdowns_ok', 'theme_pichincha').'"; var preset_main_dd = false; var sys_admin = false; '; if ($adminrole == 'siteadmin') { echo 'var sys_admin = true; '; } if ($_GET['pagetype'] == "admin-user-editadvanced-create") { // This is a create new user page echo 'preset_main_dd = true; '; } require_
Sign in Pricing Blog Support Search GitHub This repository Watch 608 Star 10,457 Fork 3,532 scottjehl/Respond Code Issues 70 Pull requests 45 Projects 0 https://github.com/scottjehl/Respond/issues/173 Pulse Graphs New issue HTML Parsing Error: Unable to modify the parent container element before the child element is closed: IE8 #173 Closed yahreen opened this Issue Jan 14, https://issues.jenkins-ci.org/browse/JENKINS-18267 2013 · 11 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 11 participants yahreen commented Jan 14, 2013 I am receiving internet explorer this error in IE8 which causes the rest of my JavaScript to break on the page.
- 15th for workshops, presentations and all things Jenkins Learn more Export Tools JenkinsJENKINS-18267HTML Parsing Error in Internet Explorer 8Log In ExportXMLWordPrintable Details Type: Bug Status: Resolved Priority: Major Resolution: Won't Fix Component/s: core Labels: None Environment: Internet Explorer 8.0.6001.18702CO, Jenkins 1.517 Similar Issues: Show Description Internet Explorer 8 fails to render most pages with the following error: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917) Row: 0 Character: 0 AttachmentsActivity All Comments History Activity Ascending order - Click to sort in descending order Hide Permalink Oleg Nenashev added a comment - 2013/Nov/08 1:45 PM The bug also appears in 1.509.4 LTS. According to documentation, the issue has been caused by ampersands somewhere in HTML output Show Oleg Nenashev added a comment - 2013/Nov/08 1:45 PM The bug also appears in 1.509.4 LTS. According to documentation, the issue has been caused by ampersands somewhere in HTML output Hide Permalink Oleg Nenashev added a comment - 2013/Nov/08 1:55 PM Re-assigning issue to the core. BTW, seems that issue has been caused by JavaScript, because I don't ampersands in URLs inside HTML code Show Oleg Nenashev added a comment - 2013/Nov/08 1:55 PM Re-assigning issue to the core. BTW, seems that issue has been caused by JavaScript, because I don't ampersands in URLs inside HTML code Hide Permalink Daniel Beck added a comment - 2014/Sep/07 12:25 AM Jenkins does not support Internet Explorer 8 (anymore), see: https://wiki.jenkins-ci.org/display/JENKINS/Browser+Compatibility+Matrix Show Daniel Beck added a comment - 2014/Sep/07 12:25 AM Jenkins does not support Internet Explorer 8 (anymore), see: https://wiki.jenkins-ci.org/display/JENKINS/Browser+Compatibility+Matrix People Assignee: Unassigned Reporter: Jonas Bergvall Votes: 1 Vote for this issue Watchers: 3 Start watching this issue Dates Created: 2013/Jun/10 7:21 AM Updated: 2014/Sep/27 3:43 PM Resolved: 2014/Sep/07 12:25 AM Atlassian JIRA Project Management Software (v7.1.7#71011-sha1:2526d7c) About JIRA Report a problem Powered by a free Atlassian JIRA open source license for Jenkins. Try JIRA - bug tracking software for your team. Atlassian