Bug 9587 - document.write() does not work inside body onload event
Summary: document.write() does not work inside body onload event
Status: RESOLVED DUPLICATE of bug 8961
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2006-06-25 17:54 PDT by David Kilzer (:ddkilzer)
Modified: 2006-06-26 03:19 PDT (History)
1 user (show)

See Also:


Attachments
Patch with layout test (968 bytes, patch)
2006-06-25 17:55 PDT, David Kilzer (:ddkilzer)
no flags Details | Formatted Diff | Diff
Test case from patch; should print "Success" when loaded (356 bytes, text/html)
2006-06-25 17:56 PDT, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2006-06-25 17:54:03 PDT
When calling a function that does a document.write() inside a body onload event, nothing is output.

This occurs on production Safari 2.0.3 (417.9.3) and Safari + WebKit r15041 on Mac OS X 10.4.6 (8I127/PowerPC).

Both Firefox 1.5.0.4 on Mac OS X and MSIE 6 on Win XP SP2 work.
Comment 1 David Kilzer (:ddkilzer) 2006-06-25 17:55:17 PDT
Created attachment 9033 [details]
Patch with layout test

Layout test, when run, should produce a document with only "Success" in it.
Comment 2 David Kilzer (:ddkilzer) 2006-06-25 17:56:05 PDT
Created attachment 9034 [details]
Test case from patch; should print "Success" when loaded
Comment 3 Alexey Proskuryakov 2006-06-25 21:40:30 PDT
Duplicate of bug 8961?
Comment 4 David Kilzer (:ddkilzer) 2006-06-26 03:19:51 PDT
(In reply to comment #3)
> Duplicate of bug 8961?

Yep!



*** This bug has been marked as a duplicate of 8961 ***