Steps to Reproduce the Behavior
- Paste the following code in Microsoft Notepad and then save
it as Test.htm:
<HTML>
<SCRIPT type="text/javascript">
function showText()
{
alert("!!" + document.getElementById("div1").innerText+ "!!");
}
</SCRIPT>
<BODY>
<DIV id="div1" name="div1" contentEditable="true">
<PRE id='pre1' style='margin:0px;'>
Press enter anywhere in this text and press the button.
</PRE>
</DIV>
<INPUT type="button" value="Button" id=button1 name=button1 onclick="showText()">
</BODY></HTML>
- In Internet Explorer, locate Test.htm.
- Put the pointer in the middle of the text line and then
press ENTER. The line breaks as expected. Click the button.
The result that you expect is for a message box to display the
text as it appears in the browser with line breaks that break the text in two.
However, after you install Internet Explorer 5.5 SP2 and patch Q313675, the
message box displays the text in a single line without any line
breaks.