aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLInputElement.webidl
diff options
context:
space:
mode:
authoryvt <i@yvt.jp>2021-07-10 17:24:27 +0900
committeryvt <i@yvt.jp>2021-07-10 17:55:42 +0900
commit01a7de50ab1843d85295f9dccad7f4c099e7208c (patch)
treeee53fb6e8889deb7b880ee969e6c662e6128d210 /components/script/dom/webidls/HTMLInputElement.webidl
parentff8d2cdbbfc7a9dc7f38b7dd47cb350fde39388f (diff)
parent94b613fbdaa2b98f2179fc0bbda13c64e6fa0d38 (diff)
downloadservo-01a7de50ab1843d85295f9dccad7f4c099e7208c.tar.gz
servo-01a7de50ab1843d85295f9dccad7f4c099e7208c.zip
Merge remote-tracking branch 'upstream/master' into feat-cow-infra
`tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html` was reverted to the upstream version.
Diffstat (limited to 'components/script/dom/webidls/HTMLInputElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLInputElement.webidl119
1 files changed, 77 insertions, 42 deletions
diff --git a/components/script/dom/webidls/HTMLInputElement.webidl b/components/script/dom/webidls/HTMLInputElement.webidl
index 5c644894bbf..6b8c557e83d 100644
--- a/components/script/dom/webidls/HTMLInputElement.webidl
+++ b/components/script/dom/webidls/HTMLInputElement.webidl
@@ -1,81 +1,116 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmlinputelement
+[Exposed=Window]
interface HTMLInputElement : HTMLElement {
+ [HTMLConstructor] constructor();
+
+ [CEReactions]
attribute DOMString accept;
+ [CEReactions]
attribute DOMString alt;
+ // [CEReactions]
// attribute DOMString autocomplete;
+ // [CEReactions]
// attribute boolean autofocus;
+ [CEReactions]
attribute boolean defaultChecked;
attribute boolean checked;
+ [CEReactions]
attribute DOMString dirName;
+ [CEReactions]
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
readonly attribute FileList? files;
- attribute DOMString formAction;
- attribute DOMString formEnctype;
- attribute DOMString formMethod;
- attribute boolean formNoValidate;
- attribute DOMString formTarget;
- // attribute unsigned long height;
- attribute boolean indeterminate;
- // attribute DOMString inputMode;
- //readonly attribute HTMLElement? list;
+ [CEReactions]
+ attribute DOMString formAction;
+ [CEReactions]
+ attribute DOMString formEnctype;
+ [CEReactions]
+ attribute DOMString formMethod;
+ [CEReactions]
+ attribute boolean formNoValidate;
+ [CEReactions]
+ attribute DOMString formTarget;
+ // [CEReactions]
+ // attribute unsigned long height;
+ attribute boolean indeterminate;
+ // [CEReactions]
+ // attribute DOMString inputMode;
+ readonly attribute HTMLElement? list;
+ [CEReactions]
attribute DOMString max;
- [SetterThrows]
- attribute long maxLength;
+ [CEReactions, SetterThrows]
+ attribute long maxLength;
+ [CEReactions]
attribute DOMString min;
- [SetterThrows]
- attribute long minLength;
+ [CEReactions, SetterThrows]
+ attribute long minLength;
+ [CEReactions]
attribute boolean multiple;
+ [CEReactions]
attribute DOMString name;
+ [CEReactions]
attribute DOMString pattern;
+ [CEReactions]
attribute DOMString placeholder;
+ [CEReactions]
attribute boolean readOnly;
+ [CEReactions]
attribute boolean required;
- [SetterThrows]
- attribute unsigned long size;
- attribute DOMString src;
+ [CEReactions, SetterThrows]
+ attribute unsigned long size;
+ [CEReactions]
+ attribute USVString src;
+ [CEReactions]
attribute DOMString step;
+ [CEReactions]
attribute DOMString type;
+ [CEReactions]
attribute DOMString defaultValue;
-[TreatNullAs=EmptyString, SetterThrows]
- attribute DOMString value;
- // attribute Date? valueAsDate;
- // attribute unrestricted double valueAsNumber;
- // attribute double valueLow;
- // attribute double valueHigh;
- // attribute unsigned long width;
+ [CEReactions, SetterThrows]
+ attribute [TreatNullAs=EmptyString] DOMString value;
+ [SetterThrows]
+ attribute object? valueAsDate;
+ [SetterThrows]
+ attribute unrestricted double valueAsNumber;
+ // [CEReactions]
+ // attribute unsigned long width;
- //void stepUp(optional long n = 1);
- //void stepDown(optional long n = 1);
+ [Throws] void stepUp(optional long n = 1);
+ [Throws] void stepDown(optional long n = 1);
- //readonly attribute boolean willValidate;
- //readonly attribute ValidityState validity;
- //readonly attribute DOMString validationMessage;
- //boolean checkValidity();
- //boolean reportValidity();
- //void setCustomValidity(DOMString error);
+ readonly attribute boolean willValidate;
+ readonly attribute ValidityState validity;
+ readonly attribute DOMString validationMessage;
+ boolean checkValidity();
+ boolean reportValidity();
+ void setCustomValidity(DOMString error);
- readonly attribute NodeList labels;
+ readonly attribute NodeList? labels;
- //void select();
- attribute unsigned long selectionStart;
- attribute unsigned long selectionEnd;
- attribute DOMString selectionDirection;
- //void setRangeText(DOMString replacement);
- //void setRangeText(DOMString replacement, unsigned long start, unsigned long end,
- // optional SelectionMode selectionMode = "preserve");
- void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
+ void select();
+ [SetterThrows]
+ attribute unsigned long? selectionStart;
+ [SetterThrows]
+ attribute unsigned long? selectionEnd;
+ [SetterThrows]
+ attribute DOMString? selectionDirection;
+ [Throws]
+ void setRangeText(DOMString replacement);
+ [Throws]
+ void setRangeText(DOMString replacement, unsigned long start, unsigned long end,
+ optional SelectionMode selectionMode = "preserve");
+ [Throws]
+ void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
// also has obsolete members
// Select with file-system paths for testing purpose
[Pref="dom.testing.htmlinputelement.select_files.enabled"]
void selectFiles(sequence<DOMString> path);
-
};
// https://html.spec.whatwg.org/multipage/#HTMLInputElement-partial