mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
'type' attribute on HTMLInputElement should be stored as an Atom
Fixes #8180
This commit is contained in:
parent
31e6f1b4a1
commit
606d4cf443
2 changed files with 17 additions and 10 deletions
|
@ -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 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue