html5/spec Overview.html,1.1965,1.1966

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv4819

Modified Files:
	Overview.html 
Log Message:
Make it possible to change a <script>'s text nodes or set its src='' attribute if it hasn't yet executed. (whatwg r2795)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1965
retrieving revision 1.1966
diff -u -d -r1.1965 -r1.1966
--- Overview.html	11 Feb 2009 23:31:49 -0000	1.1965
+++ Overview.html	12 Feb 2009 01:21:33 -0000	1.1966
@@ -10,7 +10,7 @@
    <p><a href=http://www.w3.org/><img alt=W3C height=48 src=http://www.w3.org/Icons/w3c_home width=72></a></p>
    <h1>HTML 5</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=w3c-working-draft-12-february-year><!--ZZZ:--> W3C Working Draft 12 February 2009<!-- fix date ZZZ --><!-- Editor's Draft 11 February 2009 --><!--:ZZZ--></h2>
+   <h2 class="no-num no-toc" id=w3c-working-draft-12-february-year><!--ZZZ:--> W3C Working Draft 12 February 2009<!-- fix date ZZZ --><!-- Editor's Draft 12 February 2009 --><!--:ZZZ--></h2>
    <dl><!-- ZZZ: update the month/day (twice), uncomment out --><dt>This Version:</dt>
     <dd><a href=http://www.w3.org/TR/2009/WD-html5-20090212/>http://www.w3.org/TR/2009/WD-html5-20090212/</a></dd>
 <!-- :ZZZ -->
@@ -100,7 +100,7 @@
   track.
   <!--ZZZ:-->
   This specification is the 12 February 2009 Working Draft.
-  <!-- This specification is the 11 February 2009 Editor's Draft. -->
+  <!-- This specification is the 12 February 2009 Editor's Draft. -->
   <!--:ZZZ-->
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href=http://www.whatwg.org/>WHATWG</a>. The two specifications are
   identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
@@ -8171,12 +8171,19 @@
   and fourth pieces of metadata are <dfn id=the-script-block-s-type><var>the script block's
   type</var></dfn> and <dfn id=the-script-block-s-character-encoding><var>the script block's character
   encoding</var></dfn>. They are determined when the script is run,
-  based on the attributes on the element at that time.<p>When a <code><a href=#script>script</a></code> element that is marked as neither
-  having <a href=#already-executed>"already executed"</a> nor being
-  <a href=#parser-inserted>"parser-inserted"</a> is <a href=#insert-an-element-into-a-document title="insert an element
-  into a document">inserted into a document</a>, the user agent
-  must <a href=#running-a-script title="running a script">run</a> the
-  <code><a href=#script>script</a></code> element.<p><dfn id=running-a-script title="running a script">Running a script</dfn>: When a
+  based on the attributes on the element at that time.<p>When a <code><a href=#script>script</a></code> element that is neither marked as
+  having <a href=#already-executed>"already executed"</a> nor marked as being
+  <a href=#parser-inserted>"parser-inserted"</a> experiences one of the events listed
+  in the following list, the user agent must <a href=#running-a-script title="running a
+  script">run</a> the <code><a href=#script>script</a></code> element:<ul><li>The <code><a href=#script>script</a></code> element gets <a href=#insert-an-element-into-a-document title="insert an
+   element into a document">inserted into a document</a>.</li>
+
+   <li>The <code><a href=#script>script</a></code> element's child nodes are changed.</li>
+
+   <li>The <code><a href=#script>script</a></code> element has a <code title=attr-script-src><a href=#attr-script-src>src</a></code> attribute set where previously
+   the elment had no such attribute.</li>
+
+  </ul><p><dfn id=running-a-script title="running a script">Running a script</dfn>: When a
   <code><a href=#script>script</a></code> element is to be run, the user agent must act as
   follows:<ol><li>
 
@@ -8233,6 +8240,16 @@
 
    <li>
 
+    <p>If the element has no <code title=attr-script-src><a href=#attr-script-src>src</a></code>
+    attribute, and its child nodes consist only of comment nodes and
+    empty <a href=#text-node title="text node">text nodes</a>, then the user
+    agent must abort these steps at this point. The script is not
+    executed.</p>
+
+   </li>
+
+   <li>
+
     <p>The user agent must set the element's <a href=#already-executed>"already
     executed"</a> flag.</p>
 

Received on Thursday, 12 February 2009 01:21:53 UTC