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 9983 - [parser] Insertion point not saved for external scripts
Summary: [parser] Insertion point not saved for external scripts
Status: VERIFIED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P1 critical
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-22 21:32 UTC by Adam Barth
Modified: 2010-10-09 15:35 UTC (History)
6 users (show)

See Also:


Attachments

Description Adam Barth 2010-06-22 21:32:50 UTC
In step 8 of <http://www.whatwg.org/specs/web-apps/current-work/#running-a-script>, the spec adds external scripts to the <http://www.whatwg.org/specs/web-apps/current-work/#set-of-scripts-that-will-execute-as-soon-as-possible>.  When the fetching algorithm is complete, the spec invokes <http://www.whatwg.org/specs/web-apps/current-work/#executing-a-script-block>.  However, that sequence of steps does not save the current insertion point (among other things), which seems very unlikely to be compatible with the web.

In implementing the above requirement in WebKit, we assumed the spec meant to invoke <http://www.whatwg.org/specs/web-apps/current-work/#scriptTagParserResumes>, which saves the current insertion point (and does other things that would make sense at that point).  Should we change the spec to say this explicitly?
Comment 1 Ian 'Hixie' Hickson 2010-06-23 06:57:06 UTC
The spec is unambiguous and intentional in its current requirements. The insertion point is only saved when the script is inserted by the parser. Do you have a specific example of something incompatible with the exact requirements in the spec?
Comment 2 Adam Barth 2010-06-23 07:02:22 UTC
Ah, I see.  I misunderstood how "ready to be parser-executed" worked.  Thanks.