mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +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,
|
Submit,
|
||||||
Reset,
|
Reset,
|
||||||
Button,
|
Button,
|
||||||
Menu,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[dom_struct]
|
#[dom_struct]
|
||||||
|
@ -97,7 +96,7 @@ impl HTMLButtonElementMethods for HTMLButtonElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#dom-button-type
|
// 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
|
// https://html.spec.whatwg.org/multipage/#dom-button-type
|
||||||
make_setter!(SetType, "type");
|
make_setter!(SetType, "type");
|
||||||
|
@ -216,7 +215,6 @@ impl VirtualMethods for HTMLButtonElement {
|
||||||
let value = match &**attr.value() {
|
let value = match &**attr.value() {
|
||||||
"reset" => ButtonType::Reset,
|
"reset" => ButtonType::Reset,
|
||||||
"button" => ButtonType::Button,
|
"button" => ButtonType::Button,
|
||||||
"menu" => ButtonType::Menu,
|
|
||||||
_ => ButtonType::Submit,
|
_ => ButtonType::Submit,
|
||||||
};
|
};
|
||||||
self.button_type.set(value);
|
self.button_type.set(value);
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[button-menu-historical.html]
|
|
||||||
type: testharness
|
|
||||||
[button.type reflects properly]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue