auto merge of #1225 : Ms2ger/servo/insert-docfrag, r=jdm

This commit is contained in:
bors-servo 2013-11-12 10:29:45 -08:00
commit ce04996734

View file

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