Fix a bug in Node::pre_insert.

It was accidentally broken in 3ce368fa28.
This commit is contained in:
Ms2ger 2015-06-28 15:58:57 +02:00
parent 53c04b33f0
commit 0b680dc9bd
3 changed files with 7731 additions and 5 deletions

View file

@ -1626,11 +1626,14 @@ impl Node {
} }
// Step 7-8. // Step 7-8.
let reference_child_root;
let reference_child = match child { let reference_child = match child {
Some(child) if child == node => node.GetNextSibling(), Some(child) if child == node => {
_ => None reference_child_root = node.GetNextSibling();
reference_child_root.r()
},
_ => child
}; };
let reference_child = reference_child.r().or(child);
// Step 9. // Step 9.
let document = document_from_node(parent); let document = document_from_node(parent);

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff