Skip to content

Commit

Permalink
[e] (0) Link to other places that mention scripting.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4851 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 16, 2010
1 parent e019d1b commit 7265c57
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 39 deletions.
35 changes: 22 additions & 13 deletions complete.html
Expand Up @@ -12652,8 +12652,17 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>
present, then the script is executed when the page has finished
parsing. If neither attribute is present, then the script is
fetched and executed immediately, before the user agent continues
parsing the page. The exact processing details for these attributes
are described below.</p>
parsing the page.</p>

<p class=note>The exact processing details for these attributes
are, for mostly historical reasons, somewhat non-trivial, involving
a number of aspects of HTML. The implementation requirements are
therefore by necessity scattered throughout the specification. The
algorithms below (in this section) describe the core of this
processing, but these algorithms reference and are referenced by the
parsing rules for <code><a href=#script>script</a></code> <a href=#scriptTag>start</a>
and <a href=#scriptEndTag>end</a> tags in HTML, <a href=#scriptForeignEndTag>in foreign content</a>, and <a href=#scriptTagXML>in XML</a>, the rules for the <code title=dom-document-write><a href=#dom-document-write>document.write()</a></code> method, the
handling of <a href=#scripting>scripting</a>, etc.</p>

<p>The <code title=attr-script-defer><a href=#attr-script-defer>defer</a></code> attribute may be
specified even if the <code title=attr-script-async><a href=#attr-script-async>async</a></code>
Expand Down Expand Up @@ -78043,7 +78052,7 @@ <h5 id=the-before-head-insertion-mode><span class=secno>12.2.5.6 </span>The "<df

</dd>

<dt>An end tag whose tag name is "script"</dt>
<dt id=scriptEndTag>An end tag whose tag name is "script"</dt>
<dd>

<p>Let <var title="">script</var> be the <a href=#current-node>current node</a>
Expand Down Expand Up @@ -79020,7 +79029,7 @@ <h5 id=parsing-main-inselect><span class=secno>12.2.5.19 </span>The "<dfn title=
<p><a href=#parse-error>Parse error</a>. Ignore the token.</p>
</dd>

<dt>An end tag whose tag name is "script", if the <a href=#current-node>current node</a> is a <code title="">script</code> element in the <a href=#svg-namespace>SVG namespace</a>.</dt>
<dt id=scriptForeignEndTag>An end tag whose tag name is "script", if the <a href=#current-node>current node</a> is a <code title="">script</code> element in the <a href=#svg-namespace>SVG namespace</a>.</dt>
<dd>

<p>Pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
Expand Down Expand Up @@ -82562,15 +82571,15 @@ <h3 id=parsing-xhtml-documents><span class=secno>13.2 </span>Parsing XHTML docum
an interoperable fashion without requiring any network access for
handling external subsets. <a href=#refsXML>[XML]</a></p>

<p>When an <a href=#xml-parser>XML parser</a> creates a <code><a href=#script>script</a></code>
element, it must be marked as being <a href=#parser-inserted>"parser-inserted"</a>.
If the parser was originally created for the <a href=#xml-fragment-parsing-algorithm>XML fragment
parsing algorithm</a>, then the element must be marked as
<a href=#already-started>"already started"</a> also. When the element's end tag is
parsed, the user agent must <a href=#running-a-script title="running a
script">run</a> the <code><a href=#script>script</a></code> element. If this causes
there to be a <a href=#pending-parsing-blocking-script>pending parsing-blocking script</a>, then the
user agent must run the following steps:</p>
<p id=scriptTagXML>When an <a href=#xml-parser>XML parser</a> creates a
<code><a href=#script>script</a></code> element, it must be marked as being
<a href=#parser-inserted>"parser-inserted"</a>. If the parser was originally
created for the <a href=#xml-fragment-parsing-algorithm>XML fragment parsing algorithm</a>, then
the element must be marked as <a href=#already-started>"already started"</a>
also. When the element's end tag is parsed, the user agent must
<a href=#running-a-script title="running a script">run</a> the <code><a href=#script>script</a></code>
element. If this causes there to be a <a href=#pending-parsing-blocking-script>pending parsing-blocking
script</a>, then the user agent must run the following steps:</p>

<ol><li><p>Block this instance of the <a href=#xml-parser>XML parser</a>, such
that the <a href=#event-loop>event loop</a> will not run <a href=#concept-task title=concept-task>tasks</a> that invoke it.</li>
Expand Down
35 changes: 22 additions & 13 deletions index
Expand Up @@ -12551,8 +12551,17 @@ c-end = "--&gt;"</pre>
present, then the script is executed when the page has finished
parsing. If neither attribute is present, then the script is
fetched and executed immediately, before the user agent continues
parsing the page. The exact processing details for these attributes
are described below.</p>
parsing the page.</p>

<p class=note>The exact processing details for these attributes
are, for mostly historical reasons, somewhat non-trivial, involving
a number of aspects of HTML. The implementation requirements are
therefore by necessity scattered throughout the specification. The
algorithms below (in this section) describe the core of this
processing, but these algorithms reference and are referenced by the
parsing rules for <code><a href=#script>script</a></code> <a href=#scriptTag>start</a>
and <a href=#scriptEndTag>end</a> tags in HTML, <a href=#scriptForeignEndTag>in foreign content</a>, and <a href=#scriptTagXML>in XML</a>, the rules for the <code title=dom-document-write><a href=#dom-document-write>document.write()</a></code> method, the
handling of <a href=#scripting>scripting</a>, etc.</p>

<p>The <code title=attr-script-defer><a href=#attr-script-defer>defer</a></code> attribute may be
specified even if the <code title=attr-script-async><a href=#attr-script-async>async</a></code>
Expand Down Expand Up @@ -71449,7 +71458,7 @@ document.body.appendChild(text);

</dd>

<dt>An end tag whose tag name is "script"</dt>
<dt id=scriptEndTag>An end tag whose tag name is "script"</dt>
<dd>

<p>Let <var title="">script</var> be the <a href=#current-node>current node</a>
Expand Down Expand Up @@ -72426,7 +72435,7 @@ document.body.appendChild(text);
<p><a href=#parse-error>Parse error</a>. Ignore the token.</p>
</dd>

<dt>An end tag whose tag name is "script", if the <a href=#current-node>current node</a> is a <code title="">script</code> element in the <a href=#svg-namespace>SVG namespace</a>.</dt>
<dt id=scriptForeignEndTag>An end tag whose tag name is "script", if the <a href=#current-node>current node</a> is a <code title="">script</code> element in the <a href=#svg-namespace>SVG namespace</a>.</dt>
<dd>

<p>Pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
Expand Down Expand Up @@ -75968,15 +75977,15 @@ document.body.appendChild(text);
an interoperable fashion without requiring any network access for
handling external subsets. <a href=#refsXML>[XML]</a></p>

<p>When an <a href=#xml-parser>XML parser</a> creates a <code><a href=#script>script</a></code>
element, it must be marked as being <a href=#parser-inserted>"parser-inserted"</a>.
If the parser was originally created for the <a href=#xml-fragment-parsing-algorithm>XML fragment
parsing algorithm</a>, then the element must be marked as
<a href=#already-started>"already started"</a> also. When the element's end tag is
parsed, the user agent must <a href=#running-a-script title="running a
script">run</a> the <code><a href=#script>script</a></code> element. If this causes
there to be a <a href=#pending-parsing-blocking-script>pending parsing-blocking script</a>, then the
user agent must run the following steps:</p>
<p id=scriptTagXML>When an <a href=#xml-parser>XML parser</a> creates a
<code><a href=#script>script</a></code> element, it must be marked as being
<a href=#parser-inserted>"parser-inserted"</a>. If the parser was originally
created for the <a href=#xml-fragment-parsing-algorithm>XML fragment parsing algorithm</a>, then
the element must be marked as <a href=#already-started>"already started"</a>
also. When the element's end tag is parsed, the user agent must
<a href=#running-a-script title="running a script">run</a> the <code><a href=#script>script</a></code>
element. If this causes there to be a <a href=#pending-parsing-blocking-script>pending parsing-blocking
script</a>, then the user agent must run the following steps:</p>

<ol><li><p>Block this instance of the <a href=#xml-parser>XML parser</a>, such
that the <a href=#event-loop>event loop</a> will not run <a href=#concept-task title=concept-task>tasks</a> that invoke it.</li>
Expand Down
38 changes: 25 additions & 13 deletions source
Expand Up @@ -13256,8 +13256,20 @@ c-end = "-->"</pre>
present, then the script is executed when the page has finished
parsing. If neither attribute is present, then the script is
fetched and executed immediately, before the user agent continues
parsing the page. The exact processing details for these attributes
are described below.</p>
parsing the page.</p>

<p class="note">The exact processing details for these attributes
are, for mostly historical reasons, somewhat non-trivial, involving
a number of aspects of HTML. The implementation requirements are
therefore by necessity scattered throughout the specification. The
algorithms below (in this section) describe the core of this
processing, but these algorithms reference and are referenced by the
parsing rules for <code>script</code> <a href="#scriptTag">start</a>
and <a href="#scriptEndTag">end</a> tags in HTML, <a
href="#scriptForeignEndTag">in foreign content</a>, and <a
href="#scriptTagXML">in XML</a>, the rules for the <code
title="dom-document-write">document.write()</code> method, the
handling of <a href="#scripting">scripting</a>, etc.</p>

<p>The <code title="attr-script-defer">defer</code> attribute may be
specified even if the <code title="attr-script-async">async</code>
Expand Down Expand Up @@ -89060,7 +89072,7 @@ document.body.appendChild(text);

</dd>

<dt>An end tag whose tag name is "script"</dt>
<dt id="scriptEndTag">An end tag whose tag name is "script"</dt>
<dd>

<p>Let <var title="">script</var> be the <span>current node</span>
Expand Down Expand Up @@ -90132,7 +90144,7 @@ document.body.appendChild(text);
<p><span>Parse error</span>. Ignore the token.</p>
</dd>

<dt>An end tag whose tag name is "script", if the <span>current node</span> is a <code title="">script</code> element in the <span>SVG namespace</span>.</dt>
<dt id="scriptForeignEndTag">An end tag whose tag name is "script", if the <span>current node</span> is a <code title="">script</code> element in the <span>SVG namespace</span>.</dt>
<dd>

<p>Pop the <span>current node</span> off the <span>stack of open
Expand Down Expand Up @@ -91733,15 +91745,15 @@ document.body.appendChild(text);
an interoperable fashion without requiring any network access for
handling external subsets. <a href="#refsXML">[XML]</a></p>

<p>When an <span>XML parser</span> creates a <code>script</code>
element, it must be marked as being <span>"parser-inserted"</span>.
If the parser was originally created for the <span>XML fragment
parsing algorithm</span>, then the element must be marked as
<span>"already started"</span> also. When the element's end tag is
parsed, the user agent must <span title="running a
script">run</span> the <code>script</code> element. If this causes
there to be a <span>pending parsing-blocking script</span>, then the
user agent must run the following steps:</p>
<p id="scriptTagXML">When an <span>XML parser</span> creates a
<code>script</code> element, it must be marked as being
<span>"parser-inserted"</span>. If the parser was originally
created for the <span>XML fragment parsing algorithm</span>, then
the element must be marked as <span>"already started"</span>
also. When the element's end tag is parsed, the user agent must
<span title="running a script">run</span> the <code>script</code>
element. If this causes there to be a <span>pending parsing-blocking
script</span>, then the user agent must run the following steps:</p>

<ol>

Expand Down

0 comments on commit 7265c57

Please sign in to comment.