aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorPatrick Shaughnessy <pshaughn@comcast.net>2019-12-31 20:03:30 -0500
committerPatrick Shaughnessy <pshaughn@comcast.net>2019-12-31 20:03:30 -0500
commit3da12514886c29f24d9d33db908473a1896035f5 (patch)
treea6e81951914f50b0a54fe65e9b4f09015ad2fa49 /components/script
parent90acd1adc3aa0300e5dea94855c595a19e718c6c (diff)
downloadservo-3da12514886c29f24d9d33db908473a1896035f5.tar.gz
servo-3da12514886c29f24d9d33db908473a1896035f5.zip
No more menu button
Diffstat (limited to 'components/script')
-rwxr-xr-xcomponents/script/dom/htmlbuttonelement.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs
index 1406ceb870b..6a60a88b25c 100755
--- a/components/script/dom/htmlbuttonelement.rs
+++ b/components/script/dom/htmlbuttonelement.rs
@@ -34,7 +34,6 @@ enum ButtonType {
Submit,
Reset,
Button,
- Menu,
}
#[dom_struct]
@@ -97,7 +96,7 @@ impl HTMLButtonElementMethods for HTMLButtonElement {
}
// https://html.spec.whatwg.org/multipage/#dom-button-type
- make_enumerated_getter!(Type, "type", "submit", "reset" | "button" | "menu");
+ make_enumerated_getter!(Type, "type", "submit", "reset" | "button");
// https://html.spec.whatwg.org/multipage/#dom-button-type
make_setter!(SetType, "type");
@@ -216,7 +215,6 @@ impl VirtualMethods for HTMLButtonElement {
let value = match &**attr.value() {
"reset" => ButtonType::Reset,
"button" => ButtonType::Button,
- "menu" => ButtonType::Menu,
_ => ButtonType::Submit,
};
self.button_type.set(value);