[html5] r2037 - [e] (0) prettyifying the section regarding dynamic markup insertion

whatwg at whatwg.org whatwg at whatwg.org
Sun Aug 10 15:43:52 PDT 2008


Author: ianh
Date: 2008-08-10 15:43:51 -0700 (Sun, 10 Aug 2008)
New Revision: 2037

Modified:
   index
   source
Log:
[e] (0) prettyifying the section regarding dynamic markup insertion

Modified: index
===================================================================
--- index	2008-08-10 22:37:30 UTC (rev 2036)
+++ index	2008-08-10 22:43:51 UTC (rev 2037)
@@ -8724,6 +8724,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>
 
@@ -8757,6 +8763,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>
 
@@ -9091,20 +9111,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) -->
@@ -9242,9 +9248,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,

Modified: source
===================================================================
--- source	2008-08-10 22:37:30 UTC (rev 2036)
+++ source	2008-08-10 22:43:51 UTC (rev 2037)
@@ -6634,6 +6634,10 @@
    </thead>
    <tbody>
     <tr>
+     <th><code>document.open()</code></th>
+     <td colspan=2><span title="dom-document-open"><code>document.open()</code></span></td>
+    </tr>
+    <tr>
      <th><dfn title="dom-document-write"><code>document.write()</code></dfn></th>
      <td><span title="dom-document-write-HTML"><code>document.write()</code> in HTML</span></td>
      <td><span title="dom-document-write-XML">not supported</span></td>
@@ -6658,7 +6662,21 @@
   same argument(s), plus an extra argument consisting of a string
   containing a single line feed character (U+000A).</p>
 
+  <p class="note">The <code title="dom-innerHTML">innerHTML</code>
+  attribute applies to both <code>Element</code> nodes as well as
+  <code>Document</code> nodes. The <code
+  title="dom-outerHTML">outerHTML</code> attribute, on the other hand,
+  only applies to <code>Element</code> nodes.</p>
 
+  <p class="note">When inserted using the <code
+  title="dom-document-write">document.write()</code> method,
+  <code>script</code> elements execute (typically synchronously), but
+  when inserted using <code
+  title="dom-innerHTML-HTML">innerHTML</code> and <code
+  title="dom-outerHTML-HTML">outerHTML</code> attributes, they do not
+  execute at all.</p>
+
+
   <h4>Controlling the input stream</h4>
 
   <p>The <dfn title="dom-document-open"><code>open()</code></dfn>
@@ -7062,20 +7080,6 @@
 
   </ol>
 
-  <hr>
-
-  <p class="note">The <code
-  title="dom-innerHTML-HTML">innerHTML</code> attribute applies to
-  both <code>Element</code> nodes as well as <code>Document</code>
-  nodes. The <code title="dom-outerHTML-HTML">outerHTML</code>
-  attribute, on the other hand, only applies to <code>Element</code>
-  nodes.</p>
-
-  <p class="note"><code>script</code> elements inserted using <code
-  title="dom-innerHTML-HTML">innerHTML</code> and <code
-  title="dom-outerHTML-HTML">outerHTML</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) -->
@@ -7260,9 +7264,7 @@
 
   </ol>
 
-  <p class="note"><code>script</code> elements inserted using <code
-  title="dom-innerHTML-XML">innerHTML</code> do not execute when they
-  are inserted.</p>
+  <hr>
 
   <p>In an XML context, the <dfn
   title="dom-document-write-XML"><code>document.write()</code></dfn>




More information about the Commit-Watchers mailing list