Closed Bug 399502 Opened 18 years ago Closed 18 years ago

onload event handler does not fire for xmldocument created with document.implementation.createDocument

Categories

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

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ellislau, Assigned: smaug)

References

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8) Gecko/2007091216 GranParadiso/3.0a8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a8) Gecko/2007091216 GranParadiso/3.0a8 The onload handler doesn't fire in FF 3.0a8, but it works fine in FF 2 Test Code: <script type="text/javascript"> function load() { var xmldoc = document.implementation.createDocument("", "", null); xmldoc.onload = function(evt) { alert("loaded"); }; xmldoc.load("bar.html"); } </script> <body onload="load()"> </body> Reproducible: Always Steps to Reproduce: 1.Run test code in 3.0a8 2. 3. Actual Results: Nothing happens Expected Results: Alert box with message "loaded" should appear
A minimal testcase attached using "Add an attachment" would be great. And regression range even better.
Are you trying to load an html document as xml?
Testing locally showed some problems. ->NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
2007-07-27-04-trunk builds seem to be the first ones that have this bug.
I'd say Bug 389508.
Blocks: xxx
Attached file a file for test
Attached file testcase
Flags: blocking1.9?
Blocks: 289714
Assignee: nobody → Olli.Pettay
Attached patch proposed patchSplinter Review
Attachment #284983 - Flags: superreview?(jonas)
Attachment #284983 - Flags: review?(jonas)
Attachment #284983 - Flags: superreview?(jonas)
Attachment #284983 - Flags: superreview+
Attachment #284983 - Flags: review?(jonas)
Attachment #284983 - Flags: review+
Attachment #284983 - Flags: approval1.9?
Status: NEW → RESOLVED
Closed: 18 years ago
Flags: blocking1.9? → in-testsuite+
Resolution: --- → FIXED
Keywords: checkin-needed
Component: DOM: Core → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: