hixie: 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. (whatwg r5816)

hixie: 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. (whatwg r5816)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4674&r2=1.4675&f=h
http://html5.org/tools/web-apps-tracker?from=5815&to=5816

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4674
retrieving revision 1.4675
diff -u -d -r1.4674 -r1.4675
--- Overview.html 1 Feb 2011 08:54:25 -0000 1.4674
+++ Overview.html 2 Feb 2011 00:25:00 -0000 1.4675
@@ -343,7 +343,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-1-february-2011">Editor's Draft 1 February 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-2-february-2011">Editor's Draft 2 February 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -478,7 +478,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 1 February 2011 Editor's Draft.
+  This specification is the 2 February 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- required patent boilerplate --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -1262,7 +1262,8 @@
        <li><a href="#misnested-tags:-b-p-b-p"><span class="secno">8.2.8.2 </span>Misnested tags: &lt;b&gt;&lt;p&gt;&lt;/b&gt;&lt;/p&gt;</a></li>
        <li><a href="#unexpected-markup-in-tables"><span class="secno">8.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">8.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">8.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">8.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">8.2.8.6 </span>Unclosed formatting elements</a></ol></ol></li>
    <li><a href="#serializing-html-fragments"><span class="secno">8.3 </span>Serializing HTML fragments</a></li>
    <li><a href="#parsing-html-fragments"><span class="secno">8.4 </span>Parsing HTML fragments</a></li>
    <li><a href="#named-character-references"><span class="secno">8.5 </span>Named character references</a></ol></li>
@@ -62237,7 +62238,23 @@
   <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">8.2.8.5 </span>Unclosed formatting elements</h5>
+  <h5 id="the-execution-of-scripts-that-are-moving-across-multiple-documents"><span class="secno">8.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">8.2.8.6 </span>Unclosed formatting elements</h5>
 
   <p><i>This section is non-normative.</i></p>

Received on Wednesday, 2 February 2011 23:35:34 UTC