aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltitleelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmltitleelement.rs')
-rw-r--r--components/script/dom/htmltitleelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmltitleelement.rs b/components/script/dom/htmltitleelement.rs
index 550a531aa76..41ee2fb362c 100644
--- a/components/script/dom/htmltitleelement.rs
+++ b/components/script/dom/htmltitleelement.rs
@@ -17,6 +17,7 @@ use dom::text::Text;
use servo_util::str::DOMString;
#[deriving(Encodable)]
+#[must_root]
pub struct HTMLTitleElement {
pub htmlelement: HTMLElement,
}
@@ -34,6 +35,7 @@ impl HTMLTitleElement {
}
}
+ #[allow(unrooted_must_root)]
pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLTitleElement> {
let element = HTMLTitleElement::new_inherited(localName, document);
Node::reflect_node(box element, document, HTMLTitleElementBinding::Wrap)