diff options
author | Vincent Ricard <magic@magicninja.org> | 2020-09-25 22:04:05 +0200 |
---|---|---|
committer | Vincent Ricard <magic@magicninja.org> | 2020-09-26 11:53:47 +0200 |
commit | ddfa9ca5b4639618b1617a86fcbeb2d74e819ed1 (patch) | |
tree | 04b0258022bc2a7be6e206359b3913de2fa192e8 /components/script/dom/element.rs | |
parent | 8ab389c10cfcb107cfe58fde514f5724b51909fd (diff) | |
download | servo-ddfa9ca5b4639618b1617a86fcbeb2d74e819ed1.tar.gz servo-ddfa9ca5b4639618b1617a86fcbeb2d74e819ed1.zip |
Implements HTMLDetailsElement toggle
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 4 |
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| { |