[Webkit-unassigned] [Bug 16367] New: onload not called on window load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 9 10:07:58 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=16367

           Summary: onload not called on window load
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: PC
               URL: http://crypto.stanford.edu/~abarth/research/webkit/onloa
                    d/
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hk9565 at gmail.com


If a page define an onload function:

window.onload = function () {
  alert('onload called');
}

Is onload called when the page loads?

Firefox 2: Yes
Internet Explorer 7: Yes
Opera 9.24: Yes
Safari 3: Yes

If a page defines the same function using a different syntax:

function onload() {
  alert('onload called');
}

Is onload called when the page loads?

Firefox 2: Yes
Internet Explorer 7: No
Opera 9.24: No
Safari 3: No

Seems like onload should be called in both cases.


-- 
Configure bugmail: http://bugs.webkit.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