Skip to content

Commit

Permalink
[] (0) Minor tweaks to the script group stuff to fix cases I'd overlo…
Browse files Browse the repository at this point in the history
…oked.

git-svn-id: http://svn.whatwg.org/webapps@2549 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 23, 2008
1 parent e2d47b0 commit d4ae6d0
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 20 deletions.
41 changes: 32 additions & 9 deletions index
Expand Up @@ -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-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 20 December 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 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>
Expand Down Expand Up @@ -7513,8 +7513,9 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
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>
Expand Down Expand Up @@ -33808,8 +33809,24 @@ interface <dfn id=window>Window</dfn> {
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>
Expand Down Expand Up @@ -38062,8 +38079,11 @@ user reload must be equivalent to .reload()
<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>
Expand Down Expand Up @@ -38117,8 +38137,11 @@ user reload must be equivalent to .reload()
<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>

Expand Down
49 changes: 38 additions & 11 deletions source
Expand Up @@ -7694,8 +7694,11 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
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>
Expand Down Expand Up @@ -38422,11 +38425,29 @@ interface <dfn>Window</dfn> {
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
Expand Down Expand Up @@ -43352,8 +43373,11 @@ user reload must be equivalent to .reload()

<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>
Expand Down Expand Up @@ -43416,8 +43440,11 @@ user reload must be equivalent to .reload()
<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>

Expand Down

0 comments on commit d4ae6d0

Please sign in to comment.