[html5] r2549 - [] (0) Minor tweaks to the script group stuff to fix cases I'd overlooked.

whatwg at whatwg.org whatwg at whatwg.org
Mon Dec 22 19:41:53 PST 2008


Author: ianh
Date: 2008-12-22 19:41:52 -0800 (Mon, 22 Dec 2008)
New Revision: 2549

Modified:
   index
   source
Log:
[] (0) Minor tweaks to the script group stuff to fix cases I'd overlooked.

Modified: index
===================================================================
--- index	2008-12-20 09:44:56 UTC (rev 2548)
+++ index	2008-12-23 03:41:52 UTC (rev 2549)
@@ -21,7 +21,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 20 December 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 23 December 2008</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -7513,8 +7513,9 @@
    XHTML, or image document, or something?</span></li><!-- XXX see
    also innerHTML in HTML -->
 
-   <li><p>Freeze the document's <a href=#current-script-group>current script
-   group</a>.</li>
+   <li><p>Freeze the document's <a href=#current-script-group>current script group</a>, as
+   well as the <a href=#current-script-group>current script group</a> of any <a href=#active-document title="active document">active documents</a> in <a href=#nested-browsing-context title="nested browsing context">nested browsing
+   contexts</a>.</li>
 
    <li><p>Unregister all event listeners registered on the
    <code>Document</code> node and its descendants.</p>
@@ -33808,9 +33809,25 @@
   environment</a> for the <a href=#concept-script title=concept-script>script</a> must execute the code for the
   given code entry-point.</p>
 
-  <p>When executable code in one <a href=#concept-script title=concept-script>script</a> makes a call to another <a href=#concept-script title=concept-script>script</a>, the user agent must <a href=#jump-to-a-code-entry-point title="jump to a code entry-point">jump</a> to the corresponding
-  code entry-point in that second script.</p>
+  <p>When executable code from a <a href=#concept-script title=concept-script>script</a> in one <a href=#script-group>script
+  group</a> makes a call to a <a href=#concept-script title=concept-script>script</a> in another <a href=#script-group>script
+  group</a>, the user agent must <a href=#jump-to-a-code-entry-point title="jump to a code
+  entry-point">jump</a> to the corresponding code entry-point in
+  that second script using the steps above.</p>
 
+  <p>When executable code from a <a href=#concept-script title=concept-script>script</a> makes a call to a <a href=#concept-script title=concept-script>script</a> in the same <a href=#script-group>script
+  group</a>, the <a href=#script-execution-environment title="script execution environment">script
+  execution environment</a> for the <a href=#concept-script title=concept-script>script</a> must execute the code for the
+  given code entry-point without checking if the <a href=#script-group>script
+  group</a> is frozen.</p>
+
+  <p class=note>In particular, this means that scripts in a
+  <i>frozen</i> <a href=#script-group>script group</a> can keep on executing so
+  long as they don't call code in another <a href=#script-group>script
+  group</a>. This is why a script doesn't immediately terminate
+  after calling <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code>
+  on its own <code>Document</code>.</p>
+
   <p>Any time the user agent to invoke a callback defined in a <a href=#concept-script title=concept-script>script</a>, the user agent must <a href=#jump-to-a-code-entry-point title="jump to a code entry-point">jump</a> to the corresponding
   code entry-point in that second script.</p>
 
@@ -38062,8 +38079,11 @@
    <code>Document</code> object than the <a href=#current-entry>current entry</a>
    then the user agent must run the following substeps:</p>
 
-    <ol><li>Freeze the <a href=#active-document>active document</a>'s <a href=#current-script-group>current
-     script group</a>.</li>
+    <ol><li><p>Freeze the <a href=#active-document>active document</a>'s <a href=#current-script-group>current
+     script group</a>, as well as the <a href=#current-script-group>current script
+     group</a> of any <a href=#active-document title="active document">active
+     documents</a> in <a href=#nested-browsing-context title="nested browsing context">nested
+     browsing contexts</a>.</li>
 
      <li>The user agent must move any properties that have been added
      to the browsing context's default view's <code><a href=#window>Window</a></code>
@@ -38117,8 +38137,11 @@
      <a href=#list-of-added-properties>list of added properties</a> to browsing context's
      default view's <code><a href=#window>Window</a></code> object.</li>
 
-     <li>Unfreeze the <a href=#active-document>active document</a>'s <a href=#current-script-group>current
-     script group</a>.</li>
+     <li><p>Unfreeze the <a href=#active-document>active document</a>'s <a href=#current-script-group>current
+     script group</a>, as well as the <a href=#current-script-group>current script
+     group</a> of any <a href=#active-document title="active document">active
+     documents</a> in <a href=#nested-browsing-context title="nested browsing context">nested
+     browsing contexts</a>.</li>
 
     </ol></li>
 

Modified: source
===================================================================
--- source	2008-12-20 09:44:56 UTC (rev 2548)
+++ source	2008-12-23 03:41:52 UTC (rev 2549)
@@ -7694,8 +7694,11 @@
    XHTML, or image document, or something?</span></p></li><!-- XXX see
    also innerHTML in HTML -->
 
-   <li><p>Freeze the document's <span>current script
-   group</span>.</p></li>
+   <li><p>Freeze the document's <span>current script group</span>, as
+   well as the <span>current script group</span> of any <span
+   title="active document">active documents</span> in <span
+   title="nested browsing context">nested browsing
+   contexts</span>.</p></li>
 
    <li><p>Unregister all event listeners registered on the
    <code>Document</code> node and its descendants.</p>
@@ -38422,12 +38425,30 @@
   title="concept-script">script</span> must execute the code for the
   given code entry-point.</p>
 
-  <p>When executable code in one <span
-  title="concept-script">script</span> makes a call to another <span
-  title="concept-script">script</span>, the user agent must <span
-  title="jump to a code entry-point">jump</span> to the corresponding
-  code entry-point in that second script.</p>
+  <p>When executable code from a <span
+  title="concept-script">script</span> in one <span>script
+  group</span> makes a call to a <span
+  title="concept-script">script</span> in another <span>script
+  group</span>, the user agent must <span title="jump to a code
+  entry-point">jump</span> to the corresponding code entry-point in
+  that second script using the steps above.</p>
 
+  <p>When executable code from a <span
+  title="concept-script">script</span> makes a call to a <span
+  title="concept-script">script</span> in the same <span>script
+  group</span>, the <span title="script execution environment">script
+  execution environment</span> for the <span
+  title="concept-script">script</span> must execute the code for the
+  given code entry-point without checking if the <span>script
+  group</span> is frozen.</p>
+
+  <p class="note">In particular, this means that scripts in a
+  <i>frozen</i> <span>script group</span> can keep on executing so
+  long as they don't call code in another <span>script
+  group</span>. This is why a script doesn't immediately terminate
+  after calling <code title="dom-document-open">document.open()</code>
+  on its own <code>Document</code>.</p>
+
   <p>Any time the user agent to invoke a callback defined in a <span
   title="concept-script">script</span>, the user agent must <span
   title="jump to a code entry-point">jump</span> to the corresponding
@@ -43352,8 +43373,11 @@
 
     <ol>
 
-     <li>Freeze the <span>active document</span>'s <span>current
-     script group</span>.</li>
+     <li><p>Freeze the <span>active document</span>'s <span>current
+     script group</span>, as well as the <span>current script
+     group</span> of any <span title="active document">active
+     documents</span> in <span title="nested browsing context">nested
+     browsing contexts</span>.</p></li>
 
      <li>The user agent must move any properties that have been added
      to the browsing context's default view's <code>Window</code>
@@ -43416,8 +43440,11 @@
      <span>list of added properties</span> to browsing context's
      default view's <code>Window</code> object.</li>
 
-     <li>Unfreeze the <span>active document</span>'s <span>current
-     script group</span>.</li>
+     <li><p>Unfreeze the <span>active document</span>'s <span>current
+     script group</span>, as well as the <span>current script
+     group</span> of any <span title="active document">active
+     documents</span> in <span title="nested browsing context">nested
+     browsing contexts</span>.</p></li>
 
     </ol>
 




More information about the Commit-Watchers mailing list