unwrap AppendChild result in parse_fragment

This commit is contained in:
Chris Paris 2015-03-27 10:34:12 -10:00
parent b0ba4d17ee
commit d1c5ac31ab

View file

@ -946,7 +946,7 @@ impl<'a> NodeHelpers<'a> for JSRef<'a, Node> {
let fragment = DocumentFragment::new(context_document.r()).root(); let fragment = DocumentFragment::new(context_document.r()).root();
let fragment_node: JSRef<Node> = NodeCast::from_ref(fragment.r()); let fragment_node: JSRef<Node> = NodeCast::from_ref(fragment.r());
for node in new_children { for node in new_children {
let _ = fragment_node.AppendChild(node.root().r()); fragment_node.AppendChild(node.root().r()).unwrap();
} }
Ok(Temporary::from_rooted(fragment.r())) Ok(Temporary::from_rooted(fragment.r()))
} }