@@ -14,21 +14,21 @@ interface Event {
14
14
const unsigned short BUBBLING_PHASE = 3 ;
15
15
readonly attribute unsigned short eventPhase;
16
16
17
- void stopPropagation ();
17
+ undefined stopPropagation ();
18
18
attribute boolean cancelBubble; // historical alias of .stopPropagation
19
- void stopImmediatePropagation ();
19
+ undefined stopImmediatePropagation ();
20
20
21
21
readonly attribute boolean bubbles;
22
22
readonly attribute boolean cancelable;
23
23
attribute boolean returnValue; // historical
24
- void preventDefault ();
24
+ undefined preventDefault ();
25
25
readonly attribute boolean defaultPrevented;
26
26
readonly attribute boolean composed;
27
27
28
28
[Unforgeable ] readonly attribute boolean isTrusted;
29
29
readonly attribute DOMHighResTimeStamp timeStamp;
30
30
31
- void initEvent (DOMString type, optional boolean bubbles = false , optional boolean cancelable = false ); // historical
31
+ undefined initEvent (DOMString type, optional boolean bubbles = false , optional boolean cancelable = false ); // historical
32
32
};
33
33
34
34
dictionary EventInit {
@@ -47,7 +47,7 @@ interface CustomEvent : Event {
47
47
48
48
readonly attribute any detail;
49
49
50
- void initCustomEvent (DOMString type, optional boolean bubbles = false , optional boolean cancelable = false , optional any detail = null); // historical
50
+ undefined initCustomEvent (DOMString type, optional boolean bubbles = false , optional boolean cancelable = false , optional any detail = null); // historical
51
51
};
52
52
53
53
dictionary CustomEventInit : EventInit {
@@ -58,13 +58,13 @@ dictionary CustomEventInit : EventInit {
58
58
interface EventTarget {
59
59
constructor ();
60
60
61
- void addEventListener (DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
62
- void removeEventListener (DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
61
+ undefined addEventListener (DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
62
+ undefined removeEventListener (DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
63
63
boolean dispatchEvent (Event event);
64
64
};
65
65
66
66
callback interface EventListener {
67
- void handleEvent (Event event);
67
+ undefined handleEvent (Event event);
68
68
};
69
69
70
70
dictionary EventListenerOptions {
@@ -82,7 +82,7 @@ interface AbortController {
82
82
83
83
[SameObject ] readonly attribute AbortSignal signal;
84
84
85
- void abort ();
85
+ undefined abort ();
86
86
};
87
87
88
88
[Exposed =(Window ,Worker )]
@@ -108,8 +108,8 @@ interface mixin ParentNode {
108
108
readonly attribute Element? lastElementChild;
109
109
readonly attribute unsigned long childElementCount;
110
110
111
- [CEReactions , Unscopable ] void prepend ((Node or DOMString)... nodes);
112
- [CEReactions , Unscopable ] void append ((Node or DOMString)... nodes);
111
+ [CEReactions , Unscopable ] undefined prepend ((Node or DOMString)... nodes);
112
+ [CEReactions , Unscopable ] undefined append ((Node or DOMString)... nodes);
113
113
114
114
Element? querySelector(DOMString selectors);
115
115
[NewObject ] NodeList querySelectorAll (DOMString selectors);
@@ -126,10 +126,10 @@ Element includes NonDocumentTypeChildNode;
126
126
CharacterData includes NonDocumentTypeChildNode;
127
127
128
128
interface mixin ChildNode {
129
- [CEReactions , Unscopable ] void before ((Node or DOMString)... nodes);
130
- [CEReactions , Unscopable ] void after ((Node or DOMString)... nodes);
131
- [CEReactions , Unscopable ] void replaceWith ((Node or DOMString)... nodes);
132
- [CEReactions , Unscopable ] void remove ();
129
+ [CEReactions , Unscopable ] undefined before ((Node or DOMString)... nodes);
130
+ [CEReactions , Unscopable ] undefined after ((Node or DOMString)... nodes);
131
+ [CEReactions , Unscopable ] undefined replaceWith ((Node or DOMString)... nodes);
132
+ [CEReactions , Unscopable ] undefined remove ();
133
133
};
134
134
DocumentType includes ChildNode;
135
135
Element includes ChildNode;
@@ -159,12 +159,12 @@ interface HTMLCollection {
159
159
interface MutationObserver {
160
160
constructor (MutationCallback callback);
161
161
162
- void observe (Node target, optional MutationObserverInit options = {});
163
- void disconnect ();
162
+ undefined observe (Node target, optional MutationObserverInit options = {});
163
+ undefined disconnect ();
164
164
sequence<MutationRecord> takeRecords ();
165
165
};
166
166
167
- callback MutationCallback = void (sequence<MutationRecord> mutations, MutationObserver observer);
167
+ callback MutationCallback = undefined (sequence<MutationRecord> mutations, MutationObserver observer);
168
168
169
169
dictionary MutationObserverInit {
170
170
boolean childList = false ;
@@ -222,7 +222,7 @@ interface Node : EventTarget {
222
222
223
223
[CEReactions ] attribute DOMString? nodeValue;
224
224
[CEReactions ] attribute DOMString? textContent;
225
- [CEReactions ] void normalize ();
225
+ [CEReactions ] undefined normalize ();
226
226
227
227
[CEReactions , NewObject ] Node cloneNode (optional boolean deep = false );
228
228
boolean isEqualNode (Node? otherNode);
@@ -347,10 +347,10 @@ interface Element : Node {
347
347
sequence<DOMString> getAttributeNames ();
348
348
DOMString? getAttribute(DOMString qualifiedName);
349
349
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
350
- [CEReactions ] void setAttribute (DOMString qualifiedName, DOMString value);
351
- [CEReactions ] void setAttributeNS (DOMString? namespace, DOMString qualifiedName, DOMString value);
352
- [CEReactions ] void removeAttribute (DOMString qualifiedName);
353
- [CEReactions ] void removeAttributeNS (DOMString? namespace, DOMString localName);
350
+ [CEReactions ] undefined setAttribute (DOMString qualifiedName, DOMString value);
351
+ [CEReactions ] undefined setAttributeNS (DOMString? namespace, DOMString qualifiedName, DOMString value);
352
+ [CEReactions ] undefined removeAttribute (DOMString qualifiedName);
353
+ [CEReactions ] undefined removeAttributeNS (DOMString? namespace, DOMString localName);
354
354
[CEReactions ] boolean toggleAttribute (DOMString qualifiedName, optional boolean force);
355
355
boolean hasAttribute (DOMString qualifiedName);
356
356
boolean hasAttributeNS (DOMString? namespace, DOMString localName);
@@ -373,7 +373,7 @@ interface Element : Node {
373
373
HTMLCollection getElementsByClassName (DOMString classNames);
374
374
375
375
[CEReactions ] Element? insertAdjacentElement(DOMString where, Element element); // historical
376
- void insertAdjacentText (DOMString where, DOMString data); // historical
376
+ undefined insertAdjacentText (DOMString where, DOMString data); // historical
377
377
};
378
378
379
379
dictionary ShadowRootInit {
@@ -411,10 +411,10 @@ interface CharacterData : Node {
411
411
attribute [TreatNullAs =EmptyString ] DOMString data;
412
412
readonly attribute unsigned long length;
413
413
DOMString substringData (unsigned long offset, unsigned long count);
414
- void appendData (DOMString data);
415
- void insertData (unsigned long offset, DOMString data);
416
- void deleteData (unsigned long offset, unsigned long count);
417
- void replaceData (unsigned long offset, unsigned long count, DOMString data);
414
+ undefined appendData (DOMString data);
415
+ undefined insertData (unsigned long offset, DOMString data);
416
+ undefined deleteData (unsigned long offset, unsigned long count);
417
+ undefined replaceData (unsigned long offset, unsigned long count, DOMString data);
418
418
};
419
419
420
420
[Exposed =Window ]
@@ -464,30 +464,30 @@ interface Range : AbstractRange {
464
464
465
465
readonly attribute Node commonAncestorContainer;
466
466
467
- void setStart (Node node, unsigned long offset);
468
- void setEnd (Node node, unsigned long offset);
469
- void setStartBefore (Node node);
470
- void setStartAfter (Node node);
471
- void setEndBefore (Node node);
472
- void setEndAfter (Node node);
473
- void collapse (optional boolean toStart = false );
474
- void selectNode (Node node);
475
- void selectNodeContents (Node node);
467
+ undefined setStart (Node node, unsigned long offset);
468
+ undefined setEnd (Node node, unsigned long offset);
469
+ undefined setStartBefore (Node node);
470
+ undefined setStartAfter (Node node);
471
+ undefined setEndBefore (Node node);
472
+ undefined setEndAfter (Node node);
473
+ undefined collapse (optional boolean toStart = false );
474
+ undefined selectNode (Node node);
475
+ undefined selectNodeContents (Node node);
476
476
477
477
const unsigned short START_TO_START = 0 ;
478
478
const unsigned short START_TO_END = 1 ;
479
479
const unsigned short END_TO_END = 2 ;
480
480
const unsigned short END_TO_START = 3 ;
481
481
short compareBoundaryPoints (unsigned short how, Range sourceRange);
482
482
483
- [CEReactions ] void deleteContents ();
483
+ [CEReactions ] undefined deleteContents ();
484
484
[CEReactions , NewObject ] DocumentFragment extractContents ();
485
485
[CEReactions , NewObject ] DocumentFragment cloneContents ();
486
- [CEReactions ] void insertNode (Node node);
487
- [CEReactions ] void surroundContents (Node newParent);
486
+ [CEReactions ] undefined insertNode (Node node);
487
+ [CEReactions ] undefined surroundContents (Node newParent);
488
488
489
489
[NewObject ] Range cloneRange ();
490
- void detach ();
490
+ undefined detach ();
491
491
492
492
boolean isPointInRange (Node node, unsigned long offset);
493
493
short comparePoint (Node node, unsigned long offset);
@@ -508,7 +508,7 @@ interface NodeIterator {
508
508
Node? nextNode();
509
509
Node? previousNode();
510
510
511
- void detach ();
511
+ undefined detach ();
512
512
};
513
513
514
514
[Exposed =Window ]
@@ -556,8 +556,8 @@ interface DOMTokenList {
556
556
readonly attribute unsigned long length;
557
557
getter DOMString? item(unsigned long index);
558
558
boolean contains (DOMString token);
559
- [CEReactions ] void add (DOMString... tokens);
560
- [CEReactions ] void remove (DOMString... tokens);
559
+ [CEReactions ] undefined add (DOMString... tokens);
560
+ [CEReactions ] undefined remove (DOMString... tokens);
561
561
[CEReactions ] boolean toggle (DOMString token, optional boolean force);
562
562
[CEReactions ] boolean replace (DOMString token, DOMString newToken);
563
563
boolean supports (DOMString token);
0 commit comments