diff options
Diffstat (limited to 'components/script/dom/htmllabelelement.rs')
-rw-r--r-- | components/script/dom/htmllabelelement.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmllabelelement.rs b/components/script/dom/htmllabelelement.rs index 54349aa5bf5..d45ca193e32 100644 --- a/components/script/dom/htmllabelelement.rs +++ b/components/script/dom/htmllabelelement.rs @@ -14,6 +14,7 @@ use dom::node::{Node, ElementNodeTypeId}; use servo_util::str::DOMString; #[deriving(Encodable)] +#[must_root] pub struct HTMLLabelElement { pub htmlelement: HTMLElement, } @@ -31,6 +32,7 @@ impl HTMLLabelElement { } } + #[allow(unrooted_must_root)] pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLLabelElement> { let element = HTMLLabelElement::new_inherited(localName, document); Node::reflect_node(box element, document, HTMLLabelElementBinding::Wrap) |