1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:58:14 +00:00

LibWeb: Replace IDL 'void' return type with 'undefined'

From the Web IDL spec: https://heycam.github.io/webidl/#idl-undefined

[...]
undefined constant values in IDL are represented with the `undefined`
token.
[...]
Note: This value was previously spelled `void`, and more limited in how
it was allowed to be used.
This commit is contained in:
Linus Groh 2020-12-09 21:32:04 +00:00 committed by Andreas Kling
parent c1dfb2d883
commit 5d77a19af5
6 changed files with 23 additions and 23 deletions

View file

@ -3,7 +3,7 @@ interface Element : Node {
readonly attribute DOMString tagName;
DOMString? getAttribute(DOMString qualifiedName);
void setAttribute(DOMString qualifiedName, DOMString value);
undefined setAttribute(DOMString qualifiedName, DOMString value);
readonly attribute Element? firstElementChild;
readonly attribute Element? lastElementChild;

View file

@ -7,14 +7,14 @@ interface Event {
readonly attribute unsigned short eventPhase;
void stopPropagation();
undefined stopPropagation();
attribute boolean cancelBubble;
void stopImmediatePropagation();
undefined stopImmediatePropagation();
readonly attribute boolean bubbles;
readonly attribute boolean cancelable;
attribute boolean returnValue;
void preventDefault();
undefined preventDefault();
readonly attribute boolean defaultPrevented;
readonly attribute boolean composed;

View file

@ -1,6 +1,6 @@
interface EventTarget {
void addEventListener(DOMString type, EventListener? callback);
void removeEventListener(DOMString type, EventListener? callback);
undefined addEventListener(DOMString type, EventListener? callback);
undefined removeEventListener(DOMString type, EventListener? callback);
};