[Webkit-unassigned] [Bug 141254] New: Script ordering for scripts dynamically inserted is wrong

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 4 11:14:34 PST 2015


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

            Bug ID: 141254
           Summary: Script ordering for scripts dynamically inserted is
                    wrong
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Windows 8
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rmolden at microsoft.com

When scripts are dynamically inserted by another script, via <DOM script node>.parentElement.insertBefore they are run out of order vis-à-vis the statically declared scripts in the HTML file.

Repro: 

Extract attached archive to directory, modify A.js to set the newly created script node's src attribute to the proper path where you extracted the repro files, load test.html in WebKit.

Expected:

Alert ordering to be "Executing A.js" ->  "Executing A1.js" -> "Executing B.js"


Actual:

Alert ordering is "Executing A.js" ->  "Executing B.js" -> "Executing A1.js"

In IE ordering is as expected. In Chrome it is the same as WebKit. Not sure who is correct here via the standards, but if there is latitude allowed I think IEs ordering is the most sensible and logical.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150204/f5956c96/attachment-0002.html>


More information about the webkit-unassigned mailing list