mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Ensure that it's safe to modify the DOM node pointers before doing so. Fixes #1224.
This commit is contained in:
parent
7dbabdd9e4
commit
f9f9c42ab7
3 changed files with 20 additions and 7 deletions
|
@ -274,7 +274,7 @@ impl Document {
|
|||
}
|
||||
has_title = true;
|
||||
for title_child in child.children() {
|
||||
child.remove_child(title_child);
|
||||
child.RemoveChild(title_child);
|
||||
}
|
||||
child.AppendChild(self.CreateTextNode(abstract_self, title.clone()));
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue