aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmldirectoryelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmldirectoryelement.rs')
-rw-r--r--components/script/dom/htmldirectoryelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmldirectoryelement.rs b/components/script/dom/htmldirectoryelement.rs
index 2539a389e19..17e1401b7e8 100644
--- a/components/script/dom/htmldirectoryelement.rs
+++ b/components/script/dom/htmldirectoryelement.rs
@@ -14,6 +14,7 @@ use dom::node::{Node, ElementNodeTypeId};
use servo_util::str::DOMString;
#[deriving(Encodable)]
+#[must_root]
pub struct HTMLDirectoryElement {
pub htmlelement: HTMLElement
}
@@ -31,6 +32,7 @@ impl HTMLDirectoryElement {
}
}
+ #[allow(unrooted_must_root)]
pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLDirectoryElement> {
let element = HTMLDirectoryElement::new_inherited(localName, document);
Node::reflect_node(box element, document, HTMLDirectoryElementBinding::Wrap)