[html5] r3564 - [] (0) Make innerHTML, outerHTML, and insertAdjacentHTML() trigger mutation even [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Aug 8 00:50:40 PDT 2009


Author: ianh
Date: 2009-08-08 00:50:38 -0700 (Sat, 08 Aug 2009)
New Revision: 3564

Modified:
   index
   source
Log:
[] (0) Make innerHTML, outerHTML, and insertAdjacentHTML() trigger mutation events as if a DocumentFragment had been inserted.

Modified: index
===================================================================
--- index	2009-08-08 01:41:30 UTC (rev 3563)
+++ index	2009-08-08 07:50:38 UTC (rev 3564)
@@ -9514,7 +9514,7 @@
     <p>Append all the <var title="">new children</var> nodes to the
     node whose <code title=dom-innerHTML><a href=#dom-innerhtml>innerHTML</a></code> attribute
     is being set, preserving their order, and firing mutation events
-    as appropriate.</p>
+    as if a <code>DocumentFragment</code> containing the <var title="">new children</var> had been inserted.</p>
 
    </li>
 
@@ -9621,7 +9621,9 @@
     <p>Remove <var title="">target</var> from its parent node, firing
     mutation events as appropriate, and then insert in its place all
     the <var title="">new children</var> nodes, preserving their
-    order, and again firing mutation events as appropriate.</p>
+    order, and again firing mutation events as if a
+    <code>DocumentFragment</code> containing the <var title="">new
+    children</var> had been inserted.</p>
 
    </li>
 
@@ -9794,7 +9796,7 @@
 
     </dl><p>The <var title="">new children</var> nodes must be inserted in
     a manner that preserves their order and fires mutation events as
-    appropriate.</p>
+    if a <code>DocumentFragment</code> containing the <var title="">new children</var> had been inserted.</p>
 
    </li>
 

Modified: source
===================================================================
--- source	2009-08-08 01:41:30 UTC (rev 3563)
+++ source	2009-08-08 07:50:38 UTC (rev 3564)
@@ -9830,7 +9830,8 @@
     <p>Append all the <var title="">new children</var> nodes to the
     node whose <code title="dom-innerHTML">innerHTML</code> attribute
     is being set, preserving their order, and firing mutation events
-    as appropriate.</p>
+    as if a <code>DocumentFragment</code> containing the <var
+    title="">new children</var> had been inserted.</p>
 
    </li>
 
@@ -9951,7 +9952,9 @@
     <p>Remove <var title="">target</var> from its parent node, firing
     mutation events as appropriate, and then insert in its place all
     the <var title="">new children</var> nodes, preserving their
-    order, and again firing mutation events as appropriate.</p>
+    order, and again firing mutation events as if a
+    <code>DocumentFragment</code> containing the <var title="">new
+    children</var> had been inserted.</p>
 
    </li>
 
@@ -10152,7 +10155,8 @@
 
     <p>The <var title="">new children</var> nodes must be inserted in
     a manner that preserves their order and fires mutation events as
-    appropriate.</p>
+    if a <code>DocumentFragment</code> containing the <var
+    title="">new children</var> had been inserted.</p>
 
    </li>
 




More information about the Commit-Watchers mailing list