spec/Overview.html 1.1222 2037 prettyifying the section regarding dynam

prettyifying the section regarding dynamic markup insertion (whatwg
r2037)

document.write()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1222.html#document.write0
document.writeln(...)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1222.html#document.writeln...
3.7.1 Controlling the input stream
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1222.html#controlling
outerHTML
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1222.html#outerhtml0
3.7 Dynamic markup insertion
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1222.html#dynamic0
document.write()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1222.html#document.write
3.7.3 Dynamic markup insertion in XML
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1222.html#dynamic2

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1221&r2=1.1222&f=h
http://html5.org/tools/web-apps-tracker?from=2036&to=2037

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1221
retrieving revision 1.1222
diff -u -d -r1.1221 -r1.1222
--- Overview.html 10 Aug 2008 22:38:04 -0000 1.1221
+++ Overview.html 10 Aug 2008 22:44:25 -0000 1.1222
@@ -8732,6 +8732,12 @@
 
    <tbody>
     <tr>
+     <th><code>document.open()</code>
+
+     <td colspan=2><a href="#open"
+      title=dom-document-open><code>document.open()</code></a>
+
+    <tr>
      <th><dfn id=document.write
       title=dom-document-write><code>document.write()</code></dfn>
 
@@ -8765,6 +8771,20 @@
    argument(s), plus an extra argument consisting of a string containing a
    single line feed character (U+000A).
 
+  <p class=note>The <code title=dom-innerHTML><a
+   href="#innerhtml">innerHTML</a></code> attribute applies to both
+   <code>Element</code> nodes as well as <code>Document</code> nodes. The
+   <code title=dom-outerHTML><a href="#outerhtml">outerHTML</a></code>
+   attribute, on the other hand, only applies to <code>Element</code> nodes.
+
+  <p class=note>When inserted using the <code title=dom-document-write><a
+   href="#document.write">document.write()</a></code> method, <code><a
+   href="#script1">script</a></code> elements execute (typically
+   synchronously), but when inserted using <code title=dom-innerHTML-HTML><a
+   href="#innerhtml0">innerHTML</a></code> and <code
+   title=dom-outerHTML-HTML><a href="#outerhtml0">outerHTML</a></code>
+   attributes, they do not execute at all.
+
   <h4 id=controlling><span class=secno>3.7.1 </span>Controlling the input
    stream</h4>
 
@@ -9099,20 +9119,6 @@
      its place all the <var title="">new children</var> nodes, preserving
      their order.</p>
   </ol>
-
-  <hr>
-
-  <p class=note>The <code title=dom-innerHTML-HTML><a
-   href="#innerhtml0">innerHTML</a></code> attribute applies to both
-   <code>Element</code> nodes as well as <code>Document</code> nodes. The
-   <code title=dom-outerHTML-HTML><a href="#outerhtml0">outerHTML</a></code>
-   attribute, on the other hand, only applies to <code>Element</code> nodes.
-
-  <p class=note><code><a href="#script1">script</a></code> elements inserted
-   using <code title=dom-innerHTML-HTML><a
-   href="#innerhtml0">innerHTML</a></code> and <code
-   title=dom-outerHTML-HTML><a href="#outerhtml0">outerHTML</a></code> do not
-   execute when they are inserted.</p>
   <!-- XXX must make sure we spec that innerHTML causes mutation
   events to fire, but document.write() doesn't. (the latter is already
   req-stated in the parser section, btw) -->
@@ -9250,9 +9256,7 @@
      set, preserving their order.</p>
   </ol>
 
-  <p class=note><code><a href="#script1">script</a></code> elements inserted
-   using <code title=dom-innerHTML-XML>innerHTML</code> do not execute when
-   they are inserted.
+  <hr>
 
   <p>In an XML context, the <dfn id=document.write0
    title=dom-document-write-XML><code>document.write()</code></dfn> method,

Received on Sunday, 10 August 2008 22:48:06 UTC