mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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 {
|
impl HTMLElementDerived for EventTarget {
|
||||||
fn is_htmlelement(&self) -> bool {
|
fn is_htmlelement(&self) -> bool {
|
||||||
match self.type_id {
|
match self.type_id {
|
||||||
|
NodeTargetTypeId(ElementNodeTypeId(ElementTypeId)) => false,
|
||||||
NodeTargetTypeId(ElementNodeTypeId(_)) => true,
|
NodeTargetTypeId(ElementNodeTypeId(_)) => true,
|
||||||
_ => false
|
_ => false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue