Fix assertion trying to remove a Node that has no parent

fixes #4562
This commit is contained in:
Arpad Borsos 2015-01-09 12:44:12 +01:00
parent d9751c0fbb
commit 322daccb42

View file

@ -1478,6 +1478,7 @@ impl Node {
// Step 1.
match child.parent_node() {
Some(ref node) if node != &Temporary::from_rooted(parent) => return Err(NotFound),
None => return Err(NotFound),
_ => ()
}