[Webkit-unassigned] [Bug 6640] New: onload() event handler never called for created script element

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Jan 17 20:58:33 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6640

           Summary: onload() event handler never called for created script
                    element
           Product: WebKit
           Version: 412+
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: jesse at cozgood.com


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);

-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list