LibWeb: Use correct IDL for HTTPFormElement's method attribute

Removed the custom getter and updated the idl so that the attribute
is Reflected and Enumerated.
This commit is contained in:
samu698 2024-10-20 18:24:24 +02:00 committed by Andrew Kaster
parent ebe89a3207
commit 6892482755
Notes: github-actions[bot] 2024-10-21 21:42:12 +00:00
5 changed files with 83 additions and 19 deletions

View file

@ -16,6 +16,14 @@ enum EnctypeAttribute {
"text/plain"
};
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-method
[MissingValueDefault=get, InvalidValueDefault=get]
enum MethodAttribute {
"get",
"post",
"dialog"
};
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#selectionmode
enum SelectionMode {
"select",
@ -35,7 +43,7 @@ interface HTMLFormElement : HTMLElement {
[CEReactions, Enumerated=Autocomplete, Reflect] attribute DOMString autocomplete;
[CEReactions, Enumerated=EnctypeAttribute, Reflect] attribute DOMString enctype;
[CEReactions, Enumerated=EnctypeAttribute, Reflect=enctype] attribute DOMString encoding;
[CEReactions] attribute DOMString method;
[CEReactions, Enumerated=MethodAttribute, Reflect] attribute DOMString method;
[CEReactions, Reflect] attribute DOMString name;
[CEReactions, Reflect=novalidate] attribute boolean noValidate;
[CEReactions, Reflect] attribute DOMString target;