1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

LibWeb: Reorder and add missing form elements IDL items

This commit is contained in:
Bastiaan van der Plaat 2023-10-04 17:55:33 +02:00 committed by Andreas Kling
parent 4dab17427f
commit 3e778fe29c
13 changed files with 159 additions and 50 deletions

View file

@ -1,18 +1,44 @@
#import <HTML/HTMLElement.idl>
#import <HTML/HTMLFormElement.idl>
// https://html.spec.whatwg.org/multipage/form-elements.html#htmltextareaelement
[Exposed=Window]
interface HTMLTextAreaElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions, Reflect] attribute DOMString placeholder;
[CEReactions, Reflect] attribute DOMString name;
[CEReactions, Reflect] attribute DOMString wrap;
readonly attribute DOMString type;
[CEReactions, Reflect] attribute DOMString autocomplete;
// FIXME: [CEReactions] attribute unsigned long cols;
[CEReactions, Reflect=dirname] attribute DOMString dirName;
[CEReactions, Reflect] attribute boolean disabled;
readonly attribute HTMLFormElement? form;
// FIXME: [CEReactions] attribute long maxLength;
// FIXME: [CEReactions] attribute long minLength;
[CEReactions, Reflect] attribute DOMString name;
[CEReactions, Reflect] attribute DOMString placeholder;
[CEReactions, Reflect=readonly] attribute boolean readOnly;
[CEReactions, Reflect] attribute boolean required;
// FIXME: [CEReactions] attribute unsigned long rows;
[CEReactions, Reflect] attribute DOMString wrap;
readonly attribute DOMString type;
// FIXME: [CEReactions] attribute DOMString defaultValue;
// FIXME: attribute [LegacyNullToEmptyString] DOMString value;
// FIXME: readonly attribute unsigned long textLength;
// FIXME: readonly attribute boolean willValidate;
// FIXME: readonly attribute ValidityState validity;
// FIXME: readonly attribute DOMString validationMessage;
// FIXME: boolean checkValidity();
// FIXME: boolean reportValidity();
// FIXME: undefined setCustomValidity(DOMString error);
// FIXME: readonly attribute NodeList labels;
// FIXME: undefined select();
// FIXME: attribute unsigned long selectionStart;
// FIXME: attribute unsigned long selectionEnd;
// FIXME: attribute DOMString selectionDirection;
// FIXME: undefined setRangeText(DOMString replacement);
// FIXME: undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
// FIXME: undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
};