This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18298 - "The script element gets inserted into a document." - is the order defined if multiple script elements are simultaneously inserted? What about the relative order of other things that happen on insertion and script elements?
Summary: "The script element gets inserted into a document." - is the order defined if...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 18:00 UTC by contributor
Modified: 2015-06-17 06:18 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2012-07-18 18:00:27 UTC
This was was cloned from bug 17543 as part of operation convergence.
Originally filed: 2012-06-19 09:25:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-06-19 09:25:36 +0000 
--------------------------------------------------------------------------------
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#the-script-element
Complete: http://www.whatwg.org/c#the-script-element

Comment:
"The script element gets inserted into a document." - is the order defined if
multiple script elements are simultaneously inserted? What about the relative
order of other things that happen on insertion and script elements?

Posted from: 2001:4c28:a030:30:5c7a:fe86:ae7:ee3a
User agent: Opera/9.80 (X11; Linux x86_64; U; Edition Next; en) Presto/2.10.289 Version/12.00
================================================================================
 #1   Ian 'Hixie' Hickson                             2012-06-21 06:32:02 +0000 
--------------------------------------------------------------------------------
Yeah, this isn't defined.

Unless there's a compat reason not to, my inclination is to define execution as happening after the mutation listeners, in tree order (pre-order, depth-first traversal).
================================================================================
 #2   Ian 'Hixie' Hickson                             2012-06-21 06:37:41 +0000 
--------------------------------------------------------------------------------
See also bug 17529.
================================================================================
 #3   Ian 'Hixie' Hickson                             2012-07-12 19:43:10 +0000 
--------------------------------------------------------------------------------
(this will probably use the hook from bug 17530)
================================================================================
Comment 1 Michael[tm] Smith 2015-06-17 04:56:14 UTC
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=17880

A change for this has already been in the spec for quite a while.