WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 5812
6640
onload() event handler never called for created script element
https://bugs.webkit.org/show_bug.cgi?id=6640
Summary
onload() event handler never called for created script element
Jesse Costello-Good
Reported
2006-01-17 20:58:33 PST
When loading a script file dynamically using the following common DOM technique, the onload() event handler is never called. var element = document.createElement("script"); element.src = "/path/to/my/file.js"; element.type = 'text/javascript'; element.language = 'javascript'; element.onload = function() { window.alert(this.src + " loaded"); }; document.getElementsByTagName("head")[0].appendChild(element);
Attachments
Add attachment
proposed patch, testcase, etc.
Jesse Costello-Good
Comment 1
2006-01-17 20:58:56 PST
I am evaluating Safari for a port of TIBCO(R) General Interface, a mature AJAX platform that is currently IE only. Fixing this bug would make the port more feasible.
Jesse Costello-Good
Comment 2
2006-01-17 21:00:05 PST
I see that this bug is fixed in the most recent nightly build.
Mark Rowe (bdash)
Comment 3
2006-01-17 22:02:13 PST
*** This bug has been marked as a duplicate of
5812
***
Parag Shah
Comment 4
2006-04-05 19:30:00 PDT
***
Bug 8204
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug