mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
LibWeb: Add autocomplete property
This commit is contained in:
parent
e7984a7711
commit
517b1a2690
Notes:
github-actions[bot]
2024-08-13 21:54:48 +00:00
Author: https://github.com/bplaat Commit: https://github.com/LadybirdBrowser/ladybird/commit/517b1a26905 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1061 Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue