Ensure Node.Normalize() acts on all descendants by recursively calling it on all non-text child nodes.

This commit is contained in:
Harry Maclean 2014-04-24 17:41:30 +01:00
parent 6d89e67194
commit 9e1f63e147

View file

@ -1590,6 +1590,8 @@ impl Node {
}
}
} else {
let c = &mut child.clone();
child.get_mut().Normalize(c);
prev_text = None;
}