mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
unwrap AppendChild result in parse_fragment
This commit is contained in:
parent
b0ba4d17ee
commit
d1c5ac31ab
1 changed files with 1 additions and 1 deletions
|
@ -946,7 +946,7 @@ impl<'a> NodeHelpers<'a> for JSRef<'a, Node> {
|
|||
let fragment = DocumentFragment::new(context_document.r()).root();
|
||||
let fragment_node: JSRef<Node> = NodeCast::from_ref(fragment.r());
|
||||
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()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue