Bug 9587

Summary: document.write() does not work inside body onload event
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap
Priority: P2 Keywords: HasReduction
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Patch with layout test
none
Test case from patch; should print "Success" when loaded none

David Kilzer (:ddkilzer)
Reported 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.
Attachments
Patch with layout test (968 bytes, patch)
2006-06-25 17:55 PDT, David Kilzer (:ddkilzer)
no flags
Test case from patch; should print "Success" when loaded (356 bytes, text/html)
2006-06-25 17:56 PDT, David Kilzer (:ddkilzer)
no flags
David Kilzer (:ddkilzer)
Comment 1 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.
David Kilzer (:ddkilzer)
Comment 2 2006-06-25 17:56:05 PDT
Created attachment 9034 [details] Test case from patch; should print "Success" when loaded
Alexey Proskuryakov
Comment 3 2006-06-25 21:40:30 PDT
Duplicate of bug 8961?
David Kilzer (:ddkilzer)
Comment 4 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 ***
Note You need to log in before you can comment on or make changes to this bug.