mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
auto merge of #2086 : Ms2ger/servo/htmlelement-cast, r=jdm
This commit is contained in:
commit
fe1267e88e
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