Skip to content

Commit

Permalink
Minor work on scripting, fix example bug in storage section.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@63 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 2, 2006
1 parent 64c3dd2 commit afe47e4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
22 changes: 14 additions & 8 deletions index
Expand Up @@ -38,7 +38,7 @@

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

<h2 class="no-num no-toc" id="working">Working Draft &mdash; 1 June 2006</h2>
<h2 class="no-num no-toc" id="working">Working Draft &mdash; 2 June 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 @@ -7387,16 +7387,19 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
<li>
<p>First, if the element has a <code title="attr-script-src"><a
href="#src">src</a></code> attribute, then a load for the specified
content must be started.</p>
content must be started. (For performance reasons, user agents may start
loading the script as soon as the attribute is set, instead, in the hope
that the element will be inserted into the document. Either way, once
the element is inserted into the document, the load must have started.)</p>

<li>
<p>Then, if the document is still being parsed, and the element has a
<code title="attr-script-defer">defer</code> attribute, then the element
must be added to the end of the <span>list of scripts that will execute
when the document has finished parsing</span>.</p>

<p>Otherwise, if the document is still being parsed, and the element has
a <code title="attr-script-async">async</code> attribute and a <code
<p>Otherwise, if the element has a <code
title="attr-script-async">async</code> attribute and a <code
title="attr-script-src"><a href="#src">src</a></code> attribute, then
the element must be added to the end of the <span>list of scripts that
will execute asynchronously</span>.</p>
Expand All @@ -7412,9 +7415,12 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
<p>Otherwise, the document has finished being parsed and the element has
a <code title="attr-script-src"><a href="#src">src</a></code> attribute:
the element must be added to the end of the <span>list of scripts that
will execute asynchronously</span>.</p>
will execute soon</span>.</p>
</ol>

<p><strong>What to do when an external script completes loading:</strong>
...

<p><strong>How to execute a script block:</strong> ...

<p class="big-issue">WIP</p>
Expand Down Expand Up @@ -12161,7 +12167,7 @@ user reload must be equivalent to .reload()
var storage = globalStorage['example.com'];
if (!storage.pageLoadCount)
storage.pageLoadCount = 0;
storage.pageLoadCount += 1;
storage.pageLoadCount = parseInt(storage.pageLoadCount, 10) + 1;
document.getElementById('count').textContent = storage.pageLoadCount;
&lt;/script></pre>
</div>
Expand Down Expand Up @@ -23490,8 +23496,8 @@ http://lxr.mozilla.org/mozilla/source/parser/htmlparser/src/nsHTMLTokens.cpp#94

<p>Thanks to Aankhen, Aaron Leventhal, Anne van Kesteren, Asbj&oslash;rn
Ulsberg, Ben Godfrey, Ben Meadowcroft, Bjoern Hoehrmann, Boris Zbarsky,
Brad Fults, Brad Neuberg, Brendan Eich, Christian Biesinger, Chriswa,
Darin Fisher, David Baron, David Hyatt, Derek Featherstone, David
Brad Fults, Brad Neuberg, Brendan Eich, Channy Yun, Christian Biesinger,
Chriswa, Darin Fisher, David Baron, David Hyatt, Derek Featherstone, David
Flanagan, Dimitri Glazkov, dolphinling, Doron Rosenberg, Eira Monstad,
Erik Arvidsson, fantasai, Franck 'Shift' Qu&eacute;lain, Henri Sivonen,
Henrik Lied, H&aring;kon Wium Lie, James Graham, James Perrett, Jan-Klaas
Expand Down
23 changes: 15 additions & 8 deletions source
Expand Up @@ -5787,7 +5787,11 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>

<p>First, if the element has a <code
title="attr-script-src">src</code> attribute, then a load for the
specified content must be started.</p>
specified content must be started. (For performance reasons, user
agents may start loading the script as soon as the attribute is
set, instead, in the hope that the element will be inserted into
the document. Either way, once the element is inserted into the
document, the load must have started.)</p>

</li>

Expand All @@ -5799,9 +5803,9 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
that will execute when the document has finished
parsing</span>.</p>

<p>Otherwise, if the document is still being parsed, and the element
has a <code title="attr-script-async">async</code> attribute and a
<code title="attr-script-src">src</code> attribute, then the element
<p>Otherwise, if the element has a <code
title="attr-script-async">async</code> attribute and a <code
title="attr-script-src">src</code> attribute, then the element
must be added to the end of the <span>list of scripts that will
execute asynchronously</span>.</p>

Expand All @@ -5817,12 +5821,15 @@ Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
<p>Otherwise, the document has finished being parsed and the element
has a <code title="attr-script-src">src</code> attribute: the
element must be added to the end of the <span>list of scripts that
will execute asynchronously</span>.</p>
will execute soon</span>.</p>

</li>

</ol>

<p><strong>What to do when an external script completes
loading:</strong> ...</p>

<p><strong>How to execute a script block:</strong> ...</p>

<p class="big-issue">WIP</p>
Expand Down Expand Up @@ -10334,7 +10341,7 @@ user reload must be equivalent to .reload()
var storage = globalStorage['example.com'];
if (!storage.pageLoadCount)
storage.pageLoadCount = 0;
storage.pageLoadCount += 1;
storage.pageLoadCount = parseInt(storage.pageLoadCount, 10) + 1;
document.getElementById('count').textContent = storage.pageLoadCount;
&lt;/script></pre>

Expand Down Expand Up @@ -20454,8 +20461,8 @@ http://lxr.mozilla.org/mozilla/source/parser/htmlparser/src/nsHTMLTokens.cpp#94
<p>Thanks to Aankhen, Aaron Leventhal, Anne van Kesteren,
Asbj&oslash;rn Ulsberg, Ben Godfrey, Ben Meadowcroft, Bjoern
Hoehrmann, Boris Zbarsky, Brad Fults, Brad Neuberg, Brendan Eich,
Christian Biesinger, Chriswa, Darin Fisher, David Baron, David
Hyatt, Derek Featherstone, David Flanagan, Dimitri Glazkov,
Channy Yun, Christian Biesinger, Chriswa, Darin Fisher, David Baron,
David Hyatt, Derek Featherstone, David Flanagan, Dimitri Glazkov,
dolphinling, Doron Rosenberg, Eira Monstad, Erik Arvidsson,
fantasai, Franck 'Shift' Qu&eacute;lain, Henri Sivonen, Henrik Lied,
H&aring;kon Wium Lie, James Graham, James Perrett, Jan-Klaas
Expand Down

0 comments on commit afe47e4

Please sign in to comment.