Do not root Sink::document

This commit is contained in:
Anthony Ramine 2015-10-17 16:00:41 +02:00
parent b0d1ccdf5f
commit 7c47a6b78e

View file

@ -48,8 +48,7 @@ impl Sink {
match child {
NodeOrText::AppendNode(n) => n.root(),
NodeOrText::AppendText(t) => {
let doc = self.document.root();
let text = Text::new(t.into(), &doc);
let text = Text::new(t.into(), &self.document);
NodeCast::from_root(text)
}
}