[html5] r5816 - [e] (0) add an example for completeness; this may well change if we change the r [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Feb 1 16:24:55 PST 2011


Author: ianh
Date: 2011-02-01 16:24:53 -0800 (Tue, 01 Feb 2011)
New Revision: 5816

Modified:
   complete.html
   index
   source
Log:
[e] (0) add an example for completeness; this may well change if we change the rules here and is not intended to indicate any preference on my part for one set of rules or another.

Modified: complete.html
===================================================================
--- complete.html	2011-02-01 08:53:50 UTC (rev 5815)
+++ complete.html	2011-02-02 00:24:53 UTC (rev 5816)
@@ -239,7 +239,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 1 February 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 2 February 2011</h2>
    </hgroup><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>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -1254,7 +1254,8 @@
        <li><a href=#misnested-tags:-b-p-/b-/p><span class=secno>12.2.8.2 </span>Misnested tags: <b><p></b></p></a></li>
        <li><a href=#unexpected-markup-in-tables><span class=secno>12.2.8.3 </span>Unexpected markup in tables</a></li>
        <li><a href=#scripts-that-modify-the-page-as-it-is-being-parsed><span class=secno>12.2.8.4 </span>Scripts that modify the page as it is being parsed</a></li>
-       <li><a href=#unclosed-formatting-elements><span class=secno>12.2.8.5 </span>Unclosed formatting elements</a></ol></ol></li>
+       <li><a href=#the-execution-of-scripts-that-are-moving-across-multiple-documents><span class=secno>12.2.8.5 </span>The execution of scripts that are moving across multiple documents</a></li>
+       <li><a href=#unclosed-formatting-elements><span class=secno>12.2.8.6 </span>Unclosed formatting elements</a></ol></ol></li>
    <li><a href=#serializing-html-fragments><span class=secno>12.3 </span>Serializing HTML fragments</a></li>
    <li><a href=#parsing-html-fragments><span class=secno>12.4 </span>Parsing HTML fragments</a></li>
    <li><a href=#named-character-references><span class=secno>12.5 </span>Named character references</a></ol></li>
@@ -84445,10 +84446,26 @@
   <ul class=domTree><li class=t1><code><a href=#the-html-element-0>html</a></code><ul><li class=t1><code><a href=#the-head-element-0>head</a></code><li class=t1><code><a href=#the-body-element-0>body</a></code><ul><li class=t1><code><a href=#script>script</a></code><ul><li class=t3><code>#text</code>: <span title="">alert(document.URL);</span></ul></ul></ul></ul><p>This second alert will say "http://example.com/inner".</p>
 
 
-  <h5 id=unclosed-formatting-elements><span class=secno>12.2.8.5 </span>Unclosed formatting elements</h5>
+  <h5 id=the-execution-of-scripts-that-are-moving-across-multiple-documents><span class=secno>12.2.8.5 </span>The execution of scripts that are moving across multiple documents</h5>
 
   <p><i>This section is non-normative.</i></p>
 
+  <p>Elaborating on the example in the previous section, consider a
+  case where a <code><a href=#script>script</a></code> element with a <code title=attr-script-src><a href=#attr-script-src>src</a></code> attribute is parsed, but while
+  the external script is being downloaded, the element is moved to
+  another document.</p>
+
+  <p>In this case, the <a href="#script's-global-object">script's global object</a> is that
+  second document's <a href=#browsing-context>browsing context</a>'s
+  <code><a href=#window>Window</a></code> object, not the <code><a href=#window>Window</a></code> object of
+  the document into which the element was parsed.</p>
+
+
+
+  <h5 id=unclosed-formatting-elements><span class=secno>12.2.8.6 </span>Unclosed formatting elements</h5>
+
+  <p><i>This section is non-normative.</i></p>
+
   <p>The following markup shows how nested formatting elements (such
   as <code><a href=#the-b-element>b</a></code>) get collected and continue to be applied even as
   the elements they are contained in are closed, but that excessive

Modified: index
===================================================================
--- index	2011-02-01 08:53:50 UTC (rev 5815)
+++ index	2011-02-02 00:24:53 UTC (rev 5816)
@@ -243,7 +243,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 1 February 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 2 February 2011</h2>
    </hgroup><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>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -1179,7 +1179,8 @@
        <li><a href=#misnested-tags:-b-p-/b-/p><span class=secno>10.2.8.2 </span>Misnested tags: <b><p></b></p></a></li>
        <li><a href=#unexpected-markup-in-tables><span class=secno>10.2.8.3 </span>Unexpected markup in tables</a></li>
        <li><a href=#scripts-that-modify-the-page-as-it-is-being-parsed><span class=secno>10.2.8.4 </span>Scripts that modify the page as it is being parsed</a></li>
-       <li><a href=#unclosed-formatting-elements><span class=secno>10.2.8.5 </span>Unclosed formatting elements</a></ol></ol></li>
+       <li><a href=#the-execution-of-scripts-that-are-moving-across-multiple-documents><span class=secno>10.2.8.5 </span>The execution of scripts that are moving across multiple documents</a></li>
+       <li><a href=#unclosed-formatting-elements><span class=secno>10.2.8.6 </span>Unclosed formatting elements</a></ol></ol></li>
    <li><a href=#serializing-html-fragments><span class=secno>10.3 </span>Serializing HTML fragments</a></li>
    <li><a href=#parsing-html-fragments><span class=secno>10.4 </span>Parsing HTML fragments</a></li>
    <li><a href=#named-character-references><span class=secno>10.5 </span>Named character references</a></ol></li>
@@ -80421,10 +80422,26 @@
   <ul class=domTree><li class=t1><code><a href=#the-html-element-0>html</a></code><ul><li class=t1><code><a href=#the-head-element-0>head</a></code><li class=t1><code><a href=#the-body-element-0>body</a></code><ul><li class=t1><code><a href=#script>script</a></code><ul><li class=t3><code>#text</code>: <span title="">alert(document.URL);</span></ul></ul></ul></ul><p>This second alert will say "http://example.com/inner".</p>
 
 
-  <h5 id=unclosed-formatting-elements><span class=secno>10.2.8.5 </span>Unclosed formatting elements</h5>
+  <h5 id=the-execution-of-scripts-that-are-moving-across-multiple-documents><span class=secno>10.2.8.5 </span>The execution of scripts that are moving across multiple documents</h5>
 
   <p><i>This section is non-normative.</i></p>
 
+  <p>Elaborating on the example in the previous section, consider a
+  case where a <code><a href=#script>script</a></code> element with a <code title=attr-script-src><a href=#attr-script-src>src</a></code> attribute is parsed, but while
+  the external script is being downloaded, the element is moved to
+  another document.</p>
+
+  <p>In this case, the <a href="#script's-global-object">script's global object</a> is that
+  second document's <a href=#browsing-context>browsing context</a>'s
+  <code><a href=#window>Window</a></code> object, not the <code><a href=#window>Window</a></code> object of
+  the document into which the element was parsed.</p>
+
+
+
+  <h5 id=unclosed-formatting-elements><span class=secno>10.2.8.6 </span>Unclosed formatting elements</h5>
+
+  <p><i>This section is non-normative.</i></p>
+
   <p>The following markup shows how nested formatting elements (such
   as <code><a href=#the-b-element>b</a></code>) get collected and continue to be applied even as
   the elements they are contained in are closed, but that excessive

Modified: source
===================================================================
--- source	2011-02-01 08:53:50 UTC (rev 5815)
+++ source	2011-02-02 00:24:53 UTC (rev 5816)
@@ -95584,6 +95584,23 @@
   <p>This second alert will say "http://example.com/inner".</p>
 
 
+  <h5>The execution of scripts that are moving across multiple documents</h5>
+
+  <!--END dev-html--><p><i>This section is non-normative.</i></p><!--START dev-html-->
+
+  <p>Elaborating on the example in the previous section, consider a
+  case where a <code>script</code> element with a <code
+  title="attr-script-src">src</code> attribute is parsed, but while
+  the external script is being downloaded, the element is moved to
+  another document.</p>
+
+  <p>In this case, the <span>script's global object</span> is that
+  second document's <span>browsing context</span>'s
+  <code>Window</code> object, not the <code>Window</code> object of
+  the document into which the element was parsed.</p>
+
+
+
   <h5>Unclosed formatting elements</h5>
 
   <!--END dev-html--><p><i>This section is non-normative.</i></p><!--START dev-html-->




More information about the Commit-Watchers mailing list