From 322daccb42413ab8471ec938774d6f2a716d9929 Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Fri, 9 Jan 2015 12:44:12 +0100 Subject: [PATCH] Fix assertion trying to remove a Node that has no parent fixes #4562 --- components/script/dom/node.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 849f912bf35..6d13220bd71 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -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), _ => () }