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