LibWeb: Fixed IDL for HTMLButtonElement

Use Enumerated for the form{Enctype, Method} attributes
This commit is contained in:
samu698 2024-10-20 18:26:45 +02:00 committed by Andrew Kaster
commit ab04f6d422
Notes: github-actions[bot] 2024-10-21 21:42:05 +00:00
6 changed files with 170 additions and 2 deletions

View file

@ -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",