aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documenttype.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/documenttype.rs')
-rw-r--r--components/script/dom/documenttype.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/documenttype.rs b/components/script/dom/documenttype.rs
index 5f101942139..f0d6bba5bac 100644
--- a/components/script/dom/documenttype.rs
+++ b/components/script/dom/documenttype.rs
@@ -14,6 +14,7 @@ use servo_util::str::DOMString;
/// The `DOCTYPE` tag.
#[deriving(Encodable)]
+#[must_root]
pub struct DocumentType {
pub node: Node,
pub name: DOMString,
@@ -40,7 +41,7 @@ impl DocumentType {
system_id: system_id.unwrap_or("".to_string())
}
}
-
+ #[allow(unrooted_must_root)]
pub fn new(name: DOMString,
public_id: Option<DOMString>,
system_id: Option<DOMString>,