aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
diff options
context:
space:
mode:
authorVincent Ricard <magic@magicninja.org>2020-09-25 22:04:05 +0200
committerVincent Ricard <magic@magicninja.org>2020-09-26 11:53:47 +0200
commitddfa9ca5b4639618b1617a86fcbeb2d74e819ed1 (patch)
tree04b0258022bc2a7be6e206359b3913de2fa192e8 /components/script/dom/element.rs
parent8ab389c10cfcb107cfe58fde514f5724b51909fd (diff)
downloadservo-ddfa9ca5b4639618b1617a86fcbeb2d74e819ed1.tar.gz
servo-ddfa9ca5b4639618b1617a86fcbeb2d74e819ed1.zip
Implements HTMLDetailsElement toggle
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r--components/script/dom/element.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs
index 6bf7064f048..e7316ecfeb9 100644
--- a/components/script/dom/element.rs
+++ b/components/script/dom/element.rs
@@ -3309,6 +3309,10 @@ impl Element {
let element = self.downcast::<HTMLLabelElement>().unwrap();
Some(element as &dyn Activatable)
},
+ NodeTypeId::Element(ElementTypeId::HTMLElement(HTMLElementTypeId::HTMLElement)) => {
+ let element = self.downcast::<HTMLElement>().unwrap();
+ Some(element as &dyn Activatable)
+ },
_ => None,
};
element.and_then(|elem| {