aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlheadingelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlheadingelement.rs')
-rw-r--r--components/script/dom/htmlheadingelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlheadingelement.rs b/components/script/dom/htmlheadingelement.rs
index b869e9764e1..d26cf2252bd 100644
--- a/components/script/dom/htmlheadingelement.rs
+++ b/components/script/dom/htmlheadingelement.rs
@@ -24,6 +24,7 @@ pub enum HeadingLevel {
}
#[deriving(Encodable)]
+#[must_root]
pub struct HTMLHeadingElement {
pub htmlelement: HTMLElement,
pub level: HeadingLevel,
@@ -43,6 +44,7 @@ impl HTMLHeadingElement {
}
}
+ #[allow(unrooted_must_root)]
pub fn new(localName: DOMString, document: &JSRef<Document>, level: HeadingLevel) -> Temporary<HTMLHeadingElement> {
let element = HTMLHeadingElement::new_inherited(localName, document, level);
Node::reflect_node(box element, document, HTMLHeadingElementBinding::Wrap)