The contents of a document may not be overwritten as you expect when you use the document.write method to dynamically update a document in Windows XP with Service Pack 2 (897285)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 6.0, when used with:
    • Microsoft Windows XP Professional Service Pack 2 (SP2)
    • Microsoft Windows XP Home Edition Service Pack 2 (SP2)

SYMPTOMS

On a computer that is running Microsoft Windows XP with Service Pack 2 (SP2), when you use the document.write method to dynamically update a document, the contents of the document may not be overwritten as you expect.

CAUSE

This problem may occur if you copy text from a Web browser control by using the ExecWB method with the OLECMDID_COPY constant as the first argument.

WORKAROUND

To work around this problem, use the IHTMLDocument:execCommand("copy") method to copy the text from the Web browser control.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

This problem does not occur when you use versions of Internet Explorer that were released before the release of Windows XP SP2.

Modification Type:MajorLast Reviewed:7/6/2005
Keywords:kbInetDev kbtshoot kbprb KB897285 kbAudDeveloper