Fix HTMLElementDerived::is_htmlelement to take non-HTML elements into account.

This commit is contained in:
Ms2ger 2014-04-10 10:06:14 +02:00
parent d7f450dbd7
commit 0dfbfa0b07

View file

@ -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
}