mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Implement a missing step in the node 'insert' algorithm.
This commit is contained in:
parent
3e77a48d77
commit
df41a30814
1 changed files with 9 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue