mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
No more menu button
This commit is contained in:
parent
90acd1adc3
commit
3da1251488
2 changed files with 1 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue