[Webkit-unassigned] [Bug 55374] New: Fire load event for inline scripts

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 28 07:30:05 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55374

           Summary: Fire load event for inline scripts
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: serverherder at gmail.com


>From the "execute a script block" section, step 5 indicates an asynchronous
load event should be fired at local script elements when they complete. 

Otherwise, the script is internal; queue a task to fire a simple event named
load at the script element.

http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#script

WebKit only fires the load event when a script contains a non-empty src
attribute such as a URL or data-uri. 

This is a relatively minor point and in many situations using a data-uri is an
acceptable workaround; however, data-uri's cause the script to execute using
different rules than those defined for local scripts (async execution,
synchronous callback) which is not always acceptable.  

All versions of IE fire the onreadystatechange event on local script elements
and IE9 fires the onload event at local scripts as well.  No other browsers
exhibit similar behavior.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list