Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Cannot Edit IFRAME in a Web Page Dialog Box in Internet Explorer 5.5


View products that this article applies to.

Symptoms

If you call the window.showModalDialog or window.showModelessDialog methods to place an IFRAME in a Web page dialog box, you cannot edit the IFRAME, even if you set the iframe.document.designMode property to "On".

↑ Back to the top


Cause

This problem occurs because the iframe.document.designMode="On" property does not work in Internet Explorer 5.5.

↑ Back to the top


Resolution

To resolve this problem, use the new iframe.document.body.contentEditable = "True" property in Internet Explorer version 5.5.

Note: The iframe.document.body.contentEditable = "True" property is not available in Internet Explorer 5.

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

Steps to Reproduce Behavior

Use window.showModalDialog or window.showModelessDialog to open the following HTML file in Internet Explorer 5.5:
<html>
<head>
<SCRIPT LANGUAGE=javascript>
function window_onload() {
	textEdit.document.body.contentEditable = "True"; //This line works in Internet Explorer 5.5,
                                                          // but not in Internet Explorer 5.
	textEdit.document.designMode="On"; //This line works in Internet Explorer 5, 
                                            // but not in Internet Explorer 5.5.
	textEdit.focus();
}
</SCRIPT>
</head>
<body onload="return window_onload()" language="javascript">
<iframe name="textEdit" id="textEdit" width="400" height="280"></iframe>
</body>
</html>
				
Notice that you can edit the textEdit IFRAME in Internet Explorer 5, but not in Internet Explorer 5.5.

↑ Back to the top


References

For more information on the MSHTML editing platform in Internet Explorer 5.5, see the following Microsoft Web site: For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

↑ Back to the top


Properties

Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

↑ Back to the top


Keywords: KB291125, kbprb, kbie550fix, kbbug

↑ Back to the top

Article Info
Article ID : 291125
Revision : 3
Created on : 5/11/2006
Published on : 5/11/2006
Exists online : False
Views : 307