mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implements HTMLDetailsElement toggle
This commit is contained in:
parent
8ab389c10c
commit
ddfa9ca5b4
4 changed files with 71 additions and 24 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue