auto merge of #4586 : Swatinem/servo/noderemove, r=Ms2ger

fixes #4562
This commit is contained in:
bors-servo 2015-01-09 05:57:51 -07:00
commit c338dbe947

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),
_ => ()
}