aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/document.rs')
-rw-r--r--src/components/script/dom/document.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/document.rs b/src/components/script/dom/document.rs
index d0a40235878..d2bee663740 100644
--- a/src/components/script/dom/document.rs
+++ b/src/components/script/dom/document.rs
@@ -315,7 +315,7 @@ impl Document {
for title_child in child.children() {
child.remove_child(title_child);
}
- child.add_child(self.CreateTextNode(abstract_self, title));
+ child.AppendChild(self.CreateTextNode(abstract_self, title));
break;
}
if !has_title {
@@ -325,8 +325,8 @@ impl Document {
let new_title = unsafe {
Node::as_abstract_node(self.get_cx(), new_title)
};
- new_title.add_child(self.CreateTextNode(abstract_self, title));
- node.add_child(new_title);
+ new_title.AppendChild(self.CreateTextNode(abstract_self, title));
+ node.AppendChild(new_title);
}
break;
}