mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Make make_enumerated_getter prettier again.
Fixes https://github.com/servo/servo/issues/4723.
This commit is contained in:
parent
4034bd68c2
commit
2944c8d964
6 changed files with 18 additions and 18 deletions
|
@ -83,7 +83,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" | "menu");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-button-type
|
||||
make_setter!(SetType, "type");
|
||||
|
@ -98,13 +98,13 @@ impl HTMLButtonElementMethods for HTMLButtonElement {
|
|||
make_enumerated_getter!(FormEnctype,
|
||||
"formenctype",
|
||||
"application/x-www-form-urlencoded",
|
||||
("text/plain") | ("multipart/form-data"));
|
||||
"text/plain" | "multipart/form-data");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-fs-formenctype
|
||||
make_setter!(SetFormEnctype, "formenctype");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-fs-formmethod
|
||||
make_enumerated_getter!(FormMethod, "formmethod", "get", ("post") | ("dialog"));
|
||||
make_enumerated_getter!(FormMethod, "formmethod", "get", "post" | "dialog");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-fs-formmethod
|
||||
make_setter!(SetFormMethod, "formmethod");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue