Skip to content

Commit

Permalink
[e] (0) add an example for completeness; this may well change if we c…
Browse files Browse the repository at this point in the history
…hange the rules here and is not intended to indicate any preference on my part for one set of rules or another.

git-svn-id: http://svn.whatwg.org/webapps@5816 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 2, 2011
1 parent 1eb8b97 commit 8abfab6
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 6 deletions.
23 changes: 20 additions & 3 deletions complete.html
Expand Up @@ -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 &mdash; Last Updated 1 February 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>-->
Expand Down Expand Up @@ -1254,7 +1254,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
<li><a href=#misnested-tags:-b-p-/b-/p><span class=secno>12.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>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>
Expand Down Expand Up @@ -84445,7 +84446,23 @@ <h5 id=misnested-tags:-b-i-/b-/i><span class=secno>12.2.8.1 </span>Misnested tag
<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>

Expand Down
23 changes: 20 additions & 3 deletions index
Expand Up @@ -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 &mdash; Last Updated 1 February 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>-->
Expand Down Expand Up @@ -1179,7 +1179,8 @@
<li><a href=#misnested-tags:-b-p-/b-/p><span class=secno>10.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>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>
Expand Down Expand Up @@ -80421,7 +80422,23 @@ document.body.appendChild(text);
<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>

Expand Down
17 changes: 17 additions & 0 deletions source
Expand Up @@ -95584,6 +95584,23 @@ document.body.appendChild(text);
<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-->
Expand Down

0 comments on commit 8abfab6

Please sign in to comment.