Skip to content Skip to sidebar Skip to footer

HTML Parsing Error In IE8(KB927917)

Webpage error 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 Par

Solution 1:

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(...)
}

Solution 2:

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


Solution 3:

IE takes some time to render elements. In that case, if we are referencing the element in Javascript it will throw this error.

Solution is to check on your Javascript or Jquery codes and use the codes inside the $(document).ready(function() { } function.

It works for me.


Solution 4:

This is a bug in IE8.try following the method provided below. After using this my problem is resolved.

Reset your Internet Explorer settings and run it. You can do this by following the steps given below. If the problem is caused by damaged or incompatible Internet Explorer settings or add-ons, you can usually resolve the problem by resetting Internet Explorer settings.

To use the Reset Internet Explorer Settings feature from Control Panel, follow these steps:

  1. First of all clear your IE history.
  2. Exit all programs, including Internet Explorer (if it is running).
    If you use Windows XP, click Start, and then click Run. Type the following command in the Open box, and then press ENTER:
    inetcpl.cpl
    If you use Windows Vista, click Start Collapse this imageExpand this image . Type the following command in the Start Search box, and then press ENTER:
    inetcpl.cpl
    The Internet Options dialog box appears.
  3. Click the Advanced tab.
  4. Under Reset Internet Explorer settings, click Reset. Then click Reset again.
  5. When Internet Explorer finishes resetting the settings, click Close in the Reset Internet Explorer Settings dialog box.
  6. After that you have to download the Cumulative Security update for Internet Explorer KB2360131 to resolve this.

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27630 (Windows XP)

OR

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27622 (Windows Vista)

-- Start Internet Explorer again.


Solution 5:

Not sure if this will be on any help but it might give you an idea of your problem.

I'm still learning js but I got the same problem and only in IE8. I had suspicion that it was the facebook plugin I got from facebook which stated to place the code at the top of page. I removed the code and page loaded without error then added it back and I got the error. I moved the code to the bottom of the page and it worked with no errors. The page even loaded faster.


Post a Comment for "HTML Parsing Error In IE8(KB927917)"