aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlheadingelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlheadingelement.rs')
-rw-r--r--components/script/dom/htmlheadingelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlheadingelement.rs b/components/script/dom/htmlheadingelement.rs
index 51df3db00c3..1f91a89abee 100644
--- a/components/script/dom/htmlheadingelement.rs
+++ b/components/script/dom/htmlheadingelement.rs
@@ -33,7 +33,7 @@ pub struct HTMLHeadingElement {
impl HTMLHeadingElementDerived for EventTarget {
fn is_htmlheadingelement(&self) -> bool {
- self.type_id == NodeTargetTypeId(ElementNodeTypeId(HTMLHeadingElementTypeId))
+ *self.type_id() == NodeTargetTypeId(ElementNodeTypeId(HTMLHeadingElementTypeId))
}
}