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)
Tracking
()
People
(Reporter: hyp-x, Assigned: vidur)
Details
(Whiteboard: [TESTCASE])
Attachments
(1 file)
180 bytes,
text/html
|
Details |
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
Reporter | ||
Comment 1•25 years ago
|
||
Reporter | ||
Updated•25 years ago
|
Whiteboard: [TESTCASE]
Chris -- I can't seem to reproduce this on NT, or my wifes 98 box. Can you
reproduce it?
Comment 3•25 years ago
|
||
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.
Updated•25 years ago
|
Assignee: petersen → rickg
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
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 6•25 years ago
|
||
Marking verified.
You need to log in
before you can comment on or make changes to this bug.
Description
•