ladybird/Userland/Libraries/LibWeb/HTML/HTMLFormElement.idl
Tim Ledbetter 2f5b070716 LibWeb: Implement setRangeText for input and textarea elements
This method replaces range of text in its respective element with a new
string
2024-08-31 07:47:54 +02:00

56 lines
2.1 KiB
Text

#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 {
"application/x-www-form-urlencoded",
"multipart/form-data",
"text/plain"
};
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#selectionmode
enum SelectionMode {
"select",
"start",
"end",
"preserve"
};
// https://html.spec.whatwg.org/multipage/semantics.html#htmlformelement
[Exposed=Window, LegacyOverrideBuiltIns, LegacyUnenumerableNamedProperties]
interface HTMLFormElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Reflect=accept-charset] attribute DOMString acceptCharset;
[CEReactions] attribute USVString action;
[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, Reflect] attribute DOMString name;
[CEReactions, Reflect=novalidate] attribute boolean noValidate;
[CEReactions, Reflect] attribute DOMString target;
[CEReactions, Reflect] attribute DOMString rel;
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
[SameObject] readonly attribute HTMLFormControlsCollection elements;
readonly attribute unsigned long length;
getter Element (unsigned long index);
getter (RadioNodeList or Element) (DOMString name);
undefined submit();
undefined requestSubmit(optional HTMLElement? submitter = null);
[CEReactions] undefined reset();
boolean checkValidity();
boolean reportValidity();
};