Closed Bug 321782 Opened 19 years ago Closed 19 years ago

After a <script> or <link> in a document.write, content is not parsed

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mrbkap, Unassigned)

References

()

Details

(Keywords: regression)

STEPS TO REPRODUCE:
*) Go to the URL in the URL field.
*) Click on link 2
*) Click "test"

ACTUAL RESULTS: An alert box appears. No content appears in the content area.
EXPECTED RESULTS: An alert box appears, content appears in the content area, the window has a title.
is this similar?  bug 204497 - script issue
I took a look at this today. The problem is the call to document.close() coming right after the document.write() terminates the parser. I think we need to check if the parser is blocked in nsHTMLDocument::Close and if it is remember that we've been closed, and have the parser call DidBuildModel after it's done parsing or something like that.
So this is also fallout from bug 319123 (like bug 321781)?  Would it make sense to address both together?
Blocks: 319123
Depends on: 321781
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
Blocks: 320686
This was fixed by the checkin for bug 321781.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.