aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/comment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/comment.rs')
-rw-r--r--components/script/dom/comment.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs
index 335b9744138..8da33dab01f 100644
--- a/components/script/dom/comment.rs
+++ b/components/script/dom/comment.rs
@@ -25,7 +25,7 @@ pub struct Comment {
impl CommentDerived for EventTarget {
fn is_comment(&self) -> bool {
- self.type_id == NodeTargetTypeId(CommentNodeTypeId)
+ *self.type_id() == NodeTargetTypeId(CommentNodeTypeId)
}
}