From 52ea5204a23d8cc9d40ac3e9eb4fd9e03c1cd1ca Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Wed, 5 Jan 2022 03:39:33 +0100 Subject: Convert Web IDL void to undefined Fixes #27660 --- components/script/dom/webidls/HTMLInputElement.webidl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'components/script/dom/webidls/HTMLInputElement.webidl') diff --git a/components/script/dom/webidls/HTMLInputElement.webidl b/components/script/dom/webidls/HTMLInputElement.webidl index 6b8c557e83d..3c9f2516717 100644 --- a/components/script/dom/webidls/HTMLInputElement.webidl +++ b/components/script/dom/webidls/HTMLInputElement.webidl @@ -79,19 +79,19 @@ interface HTMLInputElement : HTMLElement { // [CEReactions] // attribute unsigned long width; - [Throws] void stepUp(optional long n = 1); - [Throws] void stepDown(optional long n = 1); + [Throws] undefined stepUp(optional long n = 1); + [Throws] undefined 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); + undefined setCustomValidity(DOMString error); readonly attribute NodeList? labels; - void select(); + undefined select(); [SetterThrows] attribute unsigned long? selectionStart; [SetterThrows] @@ -99,18 +99,18 @@ interface HTMLInputElement : HTMLElement { [SetterThrows] attribute DOMString? selectionDirection; [Throws] - void setRangeText(DOMString replacement); + undefined setRangeText(DOMString replacement); [Throws] - void setRangeText(DOMString replacement, unsigned long start, unsigned long end, + undefined 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); + undefined 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 path); + undefined selectFiles(sequence path); }; // https://html.spec.whatwg.org/multipage/#HTMLInputElement-partial -- cgit v1.2.3