diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-10-29 08:46:32 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-11-06 21:07:01 -0500 |
commit | 606d4cf443a16cd5a7bf01e4f063e65baf531b0f (patch) | |
tree | a70ad24d7e4345721ccbae6a42de73c0393bcdb2 /components/script/dom/htmlelement.rs | |
parent | 31e6f1b4a1f1c46754f11f3fa7e2df0d05a19e62 (diff) | |
download | servo-606d4cf443a16cd5a7bf01e4f063e65baf531b0f.tar.gz servo-606d4cf443a16cd5a7bf01e4f063e65baf531b0f.zip |
'type' attribute on HTMLInputElement should be stored as an Atom
Fixes #8180
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index 84198d29d95..ffb31eca194 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -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 | |