LibWeb: Add autocomplete property

This commit is contained in:
Bastiaan van der Plaat 2024-08-13 15:38:35 +02:00 committed by Tim Ledbetter
parent e7984a7711
commit 517b1a2690
Notes: github-actions[bot] 2024-08-13 21:54:48 +00:00
4 changed files with 11 additions and 4 deletions

View file

@ -1,6 +1,13 @@
#import <DOM/HTMLFormControlsCollection.idl>
#import <HTML/HTMLElement.idl>
// https://html.spec.whatwg.org/multipage/forms.html#attr-form-autocomplete
[MissingValueDefault=on, InvalidValueDefault=on]
enum Autocomplete {
"on",
"off"
};
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-enctype
[MissingValueDefault=application/x-www-form-urlencoded, InvalidValueDefault=application/x-www-form-urlencoded]
enum EnctypeAttribute {
@ -17,7 +24,7 @@ interface HTMLFormElement : HTMLElement {
[CEReactions, Reflect=accept-charset] attribute DOMString acceptCharset;
[CEReactions] attribute USVString action;
[FIXME, CEReactions] attribute DOMString autocomplete;
[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;

View file

@ -10,7 +10,7 @@ interface HTMLInputElement : HTMLElement {
[CEReactions, Reflect] attribute DOMString accept;
[CEReactions, Reflect] attribute DOMString alt;
[FIXME, CEReactions] attribute DOMString autocomplete;
[CEReactions, Enumerated=Autocomplete, Reflect] attribute DOMString autocomplete;
[CEReactions, Reflect=checked] attribute boolean defaultChecked;
[ImplementedAs=checked_binding] attribute boolean checked;
[CEReactions, Reflect=dirname] attribute DOMString dirName;

View file

@ -7,7 +7,7 @@
interface HTMLSelectElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Reflect] attribute DOMString autocomplete;
[CEReactions, Enumerated=Autocomplete, Reflect] attribute DOMString autocomplete;
[CEReactions, Reflect] attribute boolean disabled;
readonly attribute HTMLFormElement? form;
[CEReactions, Reflect] attribute boolean multiple;

View file

@ -6,7 +6,7 @@
interface HTMLTextAreaElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Reflect] attribute DOMString autocomplete;
[CEReactions, Enumerated=Autocomplete, Reflect] attribute DOMString autocomplete;
[CEReactions] attribute unsigned long cols;
[CEReactions, Reflect=dirname] attribute DOMString dirName;
[CEReactions, Reflect] attribute boolean disabled;