mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 21:52:53 +00:00
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:
parent
ebe89a3207
commit
6892482755
Notes:
github-actions[bot]
2024-10-21 21:42:12 +00:00
Author: https://github.com/samu698
Commit: 6892482755
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
5 changed files with 83 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue