aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/comment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/comment.rs')
-rw-r--r--src/components/script/dom/comment.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/comment.rs b/src/components/script/dom/comment.rs
index 8cda0a033b4..9c8af55e678 100644
--- a/src/components/script/dom/comment.rs
+++ b/src/components/script/dom/comment.rs
@@ -9,14 +9,14 @@ use dom::window::Window;
/// An HTML comment.
pub struct Comment {
- parent: CharacterData,
+ element: CharacterData,
}
impl Comment {
/// Creates a new HTML comment.
pub fn new(text: ~str) -> Comment {
Comment {
- parent: CharacterData::new(CommentNodeTypeId, text)
+ element: CharacterData::new(CommentNodeTypeId, text)
}
}