auto merge of #2086 : Ms2ger/servo/htmlelement-cast, r=jdm

This commit is contained in:
bors-servo 2014-04-10 12:10:28 -04:00
commit fe1267e88e

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
}