<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9983</bug_id>
          
          <creation_ts>2010-06-22 21:32:50 +0000</creation_ts>
          <short_desc>[parser] Insertion point not saved for external scripts</short_desc>
          <delta_ts>2010-10-09 15:35:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">w3c</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36356</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2010-06-22 21:32:50 +0000</bug_when>
    <thetext>In step 8 of &lt;http://www.whatwg.org/specs/web-apps/current-work/#running-a-script&gt;, the spec adds external scripts to the &lt;http://www.whatwg.org/specs/web-apps/current-work/#set-of-scripts-that-will-execute-as-soon-as-possible&gt;.  When the fetching algorithm is complete, the spec invokes &lt;http://www.whatwg.org/specs/web-apps/current-work/#executing-a-script-block&gt;.  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 &lt;http://www.whatwg.org/specs/web-apps/current-work/#scriptTagParserResumes&gt;, 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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36363</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-06-23 06:57:06 +0000</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36364</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">w3c</who>
    <bug_when>2010-06-23 07:02:22 +0000</bug_when>
    <thetext>Ah, I see.  I misunderstood how &quot;ready to be parser-executed&quot; worked.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>