diff options
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index b7bb35e618a..298cb133c87 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -21,6 +21,7 @@ use servo_util::atom::Atom; use servo_util::str::DOMString; #[deriving(Encodable)] +#[must_root] pub struct HTMLBodyElement { pub htmlelement: HTMLElement } @@ -38,6 +39,7 @@ impl HTMLBodyElement { } } + #[allow(unrooted_must_root)] pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLBodyElement> { let element = HTMLBodyElement::new_inherited(localName, document); Node::reflect_node(box element, document, HTMLBodyElementBinding::Wrap) |