mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix HTMLElementDerived::is_htmlelement to take non-HTML elements into account.
This commit is contained in:
parent
d7f450dbd7
commit
0dfbfa0b07
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ pub struct HTMLElement {
|
|||
impl HTMLElementDerived for EventTarget {
|
||||
fn is_htmlelement(&self) -> bool {
|
||||
match self.type_id {
|
||||
NodeTargetTypeId(ElementNodeTypeId(ElementTypeId)) => false,
|
||||
NodeTargetTypeId(ElementNodeTypeId(_)) => true,
|
||||
_ => false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue