mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Add small clarification.
This commit is contained in:
@@ -178,6 +178,8 @@ core.DomUtils = function DomUtils() {
|
||||
if (node1.length === 0) {
|
||||
node1.parentNode.removeChild(node1);
|
||||
} else if (node2.nodeType === Node.TEXT_NODE) {
|
||||
// in chrome it is important to add node1 to node2. doing it the
|
||||
// other way around causes random whitespace to appear
|
||||
node1.appendData(node2.data);
|
||||
node2.parentNode.removeChild(node2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user