diff options
Diffstat (limited to 'components/script/dom/comment.rs')
-rw-r--r-- | components/script/dom/comment.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs index 82150bebf4e..40d9a5da9b6 100644 --- a/components/script/dom/comment.rs +++ b/components/script/dom/comment.rs @@ -40,7 +40,7 @@ impl Comment { pub fn Constructor(global: &GlobalRef, data: DOMString) -> Fallible<Temporary<Comment>> { let document = global.as_window().Document().root(); - Ok(Comment::new(data, *document)) + Ok(Comment::new(data, document.r())) } #[inline] |