'type' attribute on HTMLInputElement should be stored as an Atom

Fixes #8180
This commit is contained in:
Corey Farwell 2015-10-29 08:46:32 -04:00
parent 31e6f1b4a1
commit 606d4cf443
2 changed files with 17 additions and 10 deletions

View file

@ -345,7 +345,7 @@ impl HTMLElement {
NodeTypeId::Element(ElementTypeId::HTMLElement(type_id)) =>
match type_id {
HTMLElementTypeId::HTMLInputElement =>
self.downcast::<HTMLInputElement>().unwrap().Type() != "hidden",
self.downcast::<HTMLInputElement>().unwrap().type_() != atom!("hidden"),
HTMLElementTypeId::HTMLButtonElement |
HTMLElementTypeId::HTMLMeterElement |
HTMLElementTypeId::HTMLOutputElement |