Microsoft KB Archive/927917

= BUG: Error message when you visit a Web page or interact with a Web application in Internet Explorer: &quot;Operation aborted&quot; =

Article ID: 927917

Article Last Modified on 10/27/2007

-

APPLIES TO


 * Microsoft Internet Explorer 5.5
 * Microsoft Internet Explorer 6.0
 * Windows Internet Explorer 7

-



SYMPTOMS
When you visit a Web page or you interact with a Web application, you receive an Internet Explorer dialog box that contains the following error message:

Internet Explorer cannot open the Internet site http:// .com. Operation aborted.



CAUSE
This problem occurs because a child container HTML element contains script code that tries to modify the parent container element of the child container. The script code tries to modify the parent container element by using either the innerHTML method or the appendChild method.



WORKAROUND
To work around this problem, write script blocks that only modify closed containers or that only modify the script's immediate container element. To do this, you can use a placeholder to close the target container, or you can move the script block into the container that you want to modify.

Example 1
In this example, the DIV element is a child container element. The SCRIPT block inside the DIV element tries to modify the BODY element. The BODY element is the unclosed parent container of the DIV element.  document.body.innerHTML+=&quot;sample text&quot;; To resolve this problem, use one of the following methods.

Method 1: Modify the parent element
Move the SCRIPT block into the scope of the BODY element. This is the container that the script is trying to modify.  document.body.innerHTML+=&quot;sample text&quot;;

Method 2: Modify a closed container element
Add a closed container as a placeholder in the parent container element. Then, modify the new closed container with a script block.   document.getElementById('targetContainer').innerHTML+=&quot;sample text&quot;;

Example 2
In this example, a SCRIPT block that is inside a deeply nested TD container element tries to modify a parent container BODY element by using the appendChild method. To resolve this problem, move the SCRIPT block into the BODY element.  var d = document.createElement('div'); document.body.appendChild(d);



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For example, this problem may occur if a DIV element is a child container in a BODY element, and a SCRIPT block in the DIV element tries to modify the BODY element that is a parent container for the DIV element. This is a bug in the Internet Explorer parser.

Keywords: kberrmsg kbtshoot kbbug kbcode KB927917

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.