aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlhrelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlhrelement.rs')
-rw-r--r--components/script/dom/htmlhrelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs
index e132835f499..95400b2713d 100644
--- a/components/script/dom/htmlhrelement.rs
+++ b/components/script/dom/htmlhrelement.rs
@@ -22,7 +22,7 @@ pub struct HTMLHRElement {
impl HTMLHRElementDerived for EventTarget {
fn is_htmlhrelement(&self) -> bool {
- self.type_id == NodeTargetTypeId(ElementNodeTypeId(HTMLHRElementTypeId))
+ *self.type_id() == NodeTargetTypeId(ElementNodeTypeId(HTMLHRElementTypeId))
}
}