Implement a missing step in the node 'insert' algorithm.

This commit is contained in:
Ms2ger 2013-11-12 19:24:22 +01:00
parent 3e77a48d77
commit df41a30814

View file

@ -874,6 +874,15 @@ impl Node<ScriptView> {
// Step 5: DocumentFragment, mutation records.
// Step 6: DocumentFragment.
match node.type_id() {
DocumentFragmentNodeTypeId => {
for c in node.children() {
Node::remove(c, node, true);
}
},
_ => (),
}
// Step 7: mutation records.
// Step 8.
for node in nodes.iter() {