Bugzilla – Bug 306
Define when to coalesce text nodes in a less DOM-prone way. (credit: pt)
Last modified: 2009-11-23 17:17:00 CET
Index: source =================================================================== --- source (revision 2123) +++ source (revision 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,