diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-04-26 05:30:28 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-04-26 05:30:28 -0500 |
commit | 1389be37823fccf4108f4e79d0a3a793f0bbe93e (patch) | |
tree | 30b2dc45c0aad707848dab7bfc53a3c11e1bdfe8 /components/script/dom/htmlbuttonelement.rs | |
parent | aef48baeb4a67d003c8a88d91d01d3a33ac3620d (diff) | |
parent | 9185c3de7984fa46b71a62b2902a707c9d4134c3 (diff) | |
download | servo-1389be37823fccf4108f4e79d0a3a793f0bbe93e.tar.gz servo-1389be37823fccf4108f4e79d0a3a793f0bbe93e.zip |
Auto merge of #5847 - Ms2ger:slice, r=SimonSapin
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5847)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlbuttonelement.rs')
-rw-r--r-- | components/script/dom/htmlbuttonelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs index 7129681ea41..de9433cce18 100644 --- a/components/script/dom/htmlbuttonelement.rs +++ b/components/script/dom/htmlbuttonelement.rs @@ -83,7 +83,7 @@ impl<'a> HTMLButtonElementMethods for JSRef<'a, HTMLButtonElement> { let elem: JSRef<Element> = ElementCast::from_ref(self); let ty = elem.get_string_attribute(&atom!("type")).into_ascii_lowercase(); // https://html.spec.whatwg.org/multipage/#attr-button-type - match ty.as_slice() { + match &*ty { "reset" | "button" | "menu" => ty, _ => "submit".to_owned() } |