[html5] r2124 - [ct] (0) Define when to coalesce text nodes in a less DOM-prone way. (credit: pt)
whatwg at whatwg.org
whatwg at whatwg.org
Fri Aug 29 02:24:43 PDT 2008
Author: ianh
Date: 2008-08-29 02:24:33 -0700 (Fri, 29 Aug 2008)
New Revision: 2124
Modified:
index
source
Log:
[ct] (0) Define when to coalesce text nodes in a less DOM-prone way. (credit: pt)
Modified: index
===================================================================
--- index 2008-08-29 09:15:25 UTC (rev 2123)
+++ index 2008-08-29 09:24:33 UTC (rev 2124)
@@ -49172,9 +49172,11 @@
<p>When the steps below require the UA to <dfn id=insert>insert a
character</dfn> into a node, if that node has a child immediately before
where the character is to be inserted, and that child is a
- <code>Text</code> node, then the character must be appended to that
- <code>Text</code> node; otherwise, a new <code>Text</code> node whose data
- is just that character must be inserted in the appropriate place.
+ <code>Text</code> node, and that <code>Text</code> node was the last node
+ that the parser inserted into the document, then the character must be
+ appended to that <code>Text</code> node; otherwise, a new
+ <code>Text</code> node whose data is just that character must be inserted
+ in the appropriate place.
<p id=mutation-during-parsing>DOM mutation events must not fire for changes
caused by the UA parsing the document. (Conceptually, the parser is not
Modified: source
===================================================================
--- source 2008-08-29 09:15:25 UTC (rev 2123)
+++ source 2008-08-29 09:24:33 UTC (rev 2124)
@@ -46244,10 +46244,11 @@
<p>When the steps below require the UA to <dfn>insert a
character</dfn> into a node, if that node has a child immediately
before where the character is to be inserted, and that child is a
- <code>Text</code> node, then the character must be appended to that
- <code>Text</code> node; otherwise, a new <code>Text</code> node
- whose data is just that character must be inserted in the
- appropriate place.</p>
+ <code>Text</code> node, and that <code>Text</code> node was the last
+ node that the parser inserted into the document, then the character
+ must be appended to that <code>Text</code> node; otherwise, a new
+ <code>Text</code> node whose data is just that character must be
+ inserted in the appropriate place.</p>
<p id="mutation-during-parsing">DOM mutation events must not fire
for changes caused by the UA parsing the document. (Conceptually,
More information about the Commit-Watchers
mailing list