mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Fixed IDL for HTMLButtonElement
Use Enumerated for the form{Enctype, Method} attributes
This commit is contained in:
parent
6892482755
commit
ab04f6d422
Notes:
github-actions[bot]
2024-10-21 21:42:05 +00:00
Author: https://github.com/samu698
Commit: ab04f6d422
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1884
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/BodilessSleeper
Reviewed-by: https://github.com/stelar7
Reviewed-by: https://github.com/tcl3
6 changed files with 170 additions and 2 deletions
|
@ -24,6 +24,22 @@ enum MethodAttribute {
|
|||
"dialog"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype
|
||||
[InvalidValueDefault=application/x-www-form-urlencoded]
|
||||
enum FormEnctypeAttribute {
|
||||
"application/x-www-form-urlencoded",
|
||||
"multipart/form-data",
|
||||
"text/plain"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod
|
||||
[InvalidValueDefault=get]
|
||||
enum FormMethodAttribute {
|
||||
"get",
|
||||
"post",
|
||||
"dialog"
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#selectionmode
|
||||
enum SelectionMode {
|
||||
"select",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue