aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmloptionelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmloptionelement.rs')
-rw-r--r--components/script/dom/htmloptionelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmloptionelement.rs b/components/script/dom/htmloptionelement.rs
index d066784b285..22548b0aacc 100644
--- a/components/script/dom/htmloptionelement.rs
+++ b/components/script/dom/htmloptionelement.rs
@@ -19,6 +19,7 @@ use servo_util::atom::Atom;
use servo_util::str::DOMString;
#[deriving(Encodable)]
+#[must_root]
pub struct HTMLOptionElement {
pub htmlelement: HTMLElement
}
@@ -36,6 +37,7 @@ impl HTMLOptionElement {
}
}
+ #[allow(unrooted_must_root)]
pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLOptionElement> {
let element = HTMLOptionElement::new_inherited(localName, document);
Node::reflect_node(box element, document, HTMLOptionElementBinding::Wrap)