Closed Bug 14700 Opened 25 years ago Closed 25 years ago

document.write output is badly parsed, when inside <body>

Categories

(Core :: DOM: HTML Parser, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 11141

People

(Reporter: hyp-x, Assigned: vidur)

Details

(Whiteboard: [TESTCASE])

Attachments

(1 file)

When document.write contains html tags, AND it is after the <BODY> tag, then only the text after the last tag is what appears: --- <html><body> <script> document.write("Hello<br>world!"); </script> </body></html> --- only "world!" is rendered. Version tested: 1999-09-22-08 apprunner on Win98
Attached file Testcase
Whiteboard: [TESTCASE]
Assignee: rickg → petersen
Chris -- I can't seem to reproduce this on NT, or my wifes 98 box. Can you reproduce it?
Yes, I'm able to reproduce this problem on Win NT, Win 98, and Mac 8.6 with the Sept 23rd build (1999092308). The hello word is missing.
Assignee: petersen → rickg
Assignee: rickg → vidur
Oops, my test page didn't exactly match the sample. It appears as though the parser is operating correctly. This may be a content model bug or a DOM bug, so I'll start with Vidur. Here's a dump of the content model: webshell=005CA300 html refcount=3< head refcount=2< > body refcount=3< Text refcount=3<\n > script refcount=3< Text refcount=2<\r\n document.write("Hello<br>world!");\r\n > > Text refcount=2<Hello> br refcount=2<> Text refcount=3<world!\n> > >
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
This is both fixed in current builds (Linux apprunner 1999-11-08-08-M11) and a duplicate of bug 11141 (which is already marked fixed). Marking as duplicate. *** This bug has been marked as a duplicate of 11141 ***
Status: RESOLVED → VERIFIED
Marking verified.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: