Closed Bug 132962 Opened 22 years ago Closed 22 years ago

last line in document.write/ln not displayed when document.close is not called after

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 132673

People

(Reporter: hoks, Assigned: rogerl)

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+)
Gecko/20020322
BuildID:    2002032203

javascript can't generate the last line of write() or writeln() before the end
of script and start of html if document.close() is not called.
However other javascript generated lines before that are rendered.

Reproducible: Always

source example:
<html>
<head>
  <title></title>
</head>
<body>
<br>
<script language="JavaScript">
document.writeln("first line<br>");
document.writeln("second line<br>");
document.writeln("close<br>");
document.close();
document.writeln("open<br>");
document.writeln("first line<br>");
document.writeln("second line<br>");
document.writeln("third line<br>");
document.writeln("fourth line<br>");
</script>
Something not scripted<br>
<script language="JavaScript">
document.writeln("fifth line<br>");
document.close();
</script>
end of page
</body>
</html>


Actual Results:  the fourth line is missing

Expected Results:  the sentence "fourth line" should be displayed before the
sentence "something not scripted"
Attached file test file for bug

*** This bug has been marked as a duplicate of 132673 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Verified duplicate. 

hoks@mochamail.com: thank you for this report and your testcase.
You have been cc'ed on the other bug so you can follow its progress -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: