Skip to content

Commit

Permalink
More notes on <script defer>, minor wordsmithing in the parsing spec.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@19 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 13, 2006
1 parent 67d00dc commit e42282b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
33 changes: 20 additions & 13 deletions index
Expand Up @@ -35,7 +35,7 @@

<h1 id="web-applications">Web Applications 1.0</h1>

<h2 class="no-num no-toc" id="working">Working Draft &mdash; 9 April 2006</h2>
<h2 class="no-num no-toc" id="working">Working Draft &mdash; 12 April 2006</h2>

<p>You can take part in this work. <a
href="http://www.whatwg.org/mailing-list">Join the working group's
Expand Down Expand Up @@ -7379,6 +7379,13 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
children nodes of the <code><a href="#script1">script</a></code> element
as the script.</p>
<!-- XXXXXXXXXXXX -->
<!--
http://www.websiteoptimization.com/speed/tweak/defer/test/

internal deferred scripts execute before any external scripts execute, or before the LOAD if there are none
external deferred scripts execute before the LOAD

-->

<p>The DOM attributes <dfn id="src0"
title="dom-script-src"><code>src</code></dfn> and <dfn id="type6"
Expand Down Expand Up @@ -20423,20 +20430,20 @@ function receiver(e) {
elements</a></span>.

<li>If <var>node</var> is the <var>formatting element</var>, then
go to the next step in the overall algorithm.

<li>Otherwise, if <var>last node</var> is the <var>furthest
block</var>, then move the aforementioned bookmark to be
immediately after the <var>node</var> in the <span><a
href="#list-of">list of active formatting elements</a></span>.
go to the next step in the overall algorithm. Otherwise:

<li>Otherwise, if <var>node</var> has any children, perform a
shallow clone of <var>node</var>, replace the entry for
<li>If <var>last node</var> is the <var>furthest block</var>, then
move the aforementioned bookmark to be immediately after the
<var>node</var> in the <span><a href="#list-of">list of active
formatting elements</a></span> with an entry for the clone,
replace the entry for <var>node</var> in the <span><a
href="#stack">stack of open elements</a></span> with an entry for
the clone, and let <var>node</var> be the clone.
formatting elements</a></span>.

<li>If <var>node</var> has any children, perform a shallow clone
of <var>node</var>, replace the entry for <var>node</var> in the
<span><a href="#list-of">list of active formatting
elements</a></span> with an entry for the clone, replace the
entry for <var>node</var> in the <span><a href="#stack">stack of
open elements</a></span> with an entry for the clone, and let
<var>node</var> be the clone.

<li>Insert <var>last node</var> into <var>node</var>.

Expand Down
15 changes: 11 additions & 4 deletions source
Expand Up @@ -5807,6 +5807,13 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
element as the script.</p>

<!-- XXXXXXXXXXXX -->
<!--
http://www.websiteoptimization.com/speed/tweak/defer/test/

internal deferred scripts execute before any external scripts execute, or before the LOAD if there are none
external deferred scripts execute before the LOAD

-->

<p>The DOM attributes <dfn
title="dom-script-src"><code>src</code></dfn> and <dfn
Expand Down Expand Up @@ -18399,15 +18406,15 @@ function receiver(e) {

<li>If <var>node</var> is the <var>formatting
element</var>, then go to the next step in the overall
algorithm.</li>
algorithm. Otherwise:</li>

<li>Otherwise, if <var>last node</var> is the <var>furthest
<li>If <var>last node</var> is the <var>furthest
block</var>, then move the aforementioned bookmark to be
immediately after the <var>node</var> in the <span>list of
active formatting elements</span>.</li>

<li>Otherwise, if <var>node</var> has any children, perform
a shallow clone of <var>node</var>, replace the entry for
<li>If <var>node</var> has any children, perform a shallow
clone of <var>node</var>, replace the entry for
<var>node</var> in the <span>list of active formatting
elements</span> with an entry for the clone, replace the
entry for <var>node</var> in the <span>stack of open
Expand Down

0 comments on commit e42282b

Please sign in to comment.