1
1
// GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into reffy-reports
3
- // (https://github.com/tidoust/reffy-reports )
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref )
4
4
// Source: DOM Standard (https://dom.spec.whatwg.org/)
5
5
6
6
[Exposed=(Window,Worker,AudioWorklet)]
@@ -19,21 +19,21 @@ interface Event {
19
19
const unsigned short BUBBLING_PHASE = 3;
20
20
readonly attribute unsigned short eventPhase;
21
21
22
- void stopPropagation();
22
+ undefined stopPropagation();
23
23
attribute boolean cancelBubble; // historical alias of .stopPropagation
24
- void stopImmediatePropagation();
24
+ undefined stopImmediatePropagation();
25
25
26
26
readonly attribute boolean bubbles;
27
27
readonly attribute boolean cancelable;
28
28
attribute boolean returnValue; // historical
29
- void preventDefault();
29
+ undefined preventDefault();
30
30
readonly attribute boolean defaultPrevented;
31
31
readonly attribute boolean composed;
32
32
33
33
[LegacyUnforgeable] readonly attribute boolean isTrusted;
34
34
readonly attribute DOMHighResTimeStamp timeStamp;
35
35
36
- void initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // historical
36
+ undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // historical
37
37
};
38
38
39
39
dictionary EventInit {
@@ -52,7 +52,7 @@ interface CustomEvent : Event {
52
52
53
53
readonly attribute any detail;
54
54
55
- void initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // historical
55
+ undefined initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // historical
56
56
};
57
57
58
58
dictionary CustomEventInit : EventInit {
@@ -63,13 +63,13 @@ dictionary CustomEventInit : EventInit {
63
63
interface EventTarget {
64
64
constructor();
65
65
66
- void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
67
- void removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
66
+ undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
67
+ undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
68
68
boolean dispatchEvent(Event event);
69
69
};
70
70
71
71
callback interface EventListener {
72
- void handleEvent(Event event);
72
+ undefined handleEvent(Event event);
73
73
};
74
74
75
75
dictionary EventListenerOptions {
@@ -87,7 +87,7 @@ interface AbortController {
87
87
88
88
[SameObject] readonly attribute AbortSignal signal;
89
89
90
- void abort();
90
+ undefined abort();
91
91
};
92
92
93
93
[Exposed=(Window,Worker)]
@@ -113,9 +113,9 @@ interface mixin ParentNode {
113
113
readonly attribute Element? lastElementChild;
114
114
readonly attribute unsigned long childElementCount;
115
115
116
- [CEReactions, Unscopable] void prepend((Node or DOMString)... nodes);
117
- [CEReactions, Unscopable] void append((Node or DOMString)... nodes);
118
- [CEReactions, Unscopable] void replaceChildren((Node or DOMString)... nodes);
116
+ [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
117
+ [CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
118
+ [CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
119
119
120
120
Element? querySelector(DOMString selectors);
121
121
[NewObject] NodeList querySelectorAll(DOMString selectors);
@@ -132,10 +132,10 @@ Element includes NonDocumentTypeChildNode;
132
132
CharacterData includes NonDocumentTypeChildNode;
133
133
134
134
interface mixin ChildNode {
135
- [CEReactions, Unscopable] void before((Node or DOMString)... nodes);
136
- [CEReactions, Unscopable] void after((Node or DOMString)... nodes);
137
- [CEReactions, Unscopable] void replaceWith((Node or DOMString)... nodes);
138
- [CEReactions, Unscopable] void remove();
135
+ [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
136
+ [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
137
+ [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
138
+ [CEReactions, Unscopable] undefined remove();
139
139
};
140
140
DocumentType includes ChildNode;
141
141
Element includes ChildNode;
@@ -165,12 +165,12 @@ interface HTMLCollection {
165
165
interface MutationObserver {
166
166
constructor(MutationCallback callback);
167
167
168
- void observe(Node target, optional MutationObserverInit options = {});
169
- void disconnect();
168
+ undefined observe(Node target, optional MutationObserverInit options = {});
169
+ undefined disconnect();
170
170
sequence<MutationRecord> takeRecords();
171
171
};
172
172
173
- callback MutationCallback = void (sequence<MutationRecord> mutations, MutationObserver observer);
173
+ callback MutationCallback = undefined (sequence<MutationRecord> mutations, MutationObserver observer);
174
174
175
175
dictionary MutationObserverInit {
176
176
boolean childList = false;
@@ -228,7 +228,7 @@ interface Node : EventTarget {
228
228
229
229
[CEReactions] attribute DOMString? nodeValue;
230
230
[CEReactions] attribute DOMString? textContent;
231
- [CEReactions] void normalize();
231
+ [CEReactions] undefined normalize();
232
232
233
233
[CEReactions, NewObject] Node cloneNode(optional boolean deep = false);
234
234
boolean isEqualNode(Node? otherNode);
@@ -353,10 +353,10 @@ interface Element : Node {
353
353
sequence<DOMString> getAttributeNames();
354
354
DOMString? getAttribute(DOMString qualifiedName);
355
355
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
356
- [CEReactions] void setAttribute(DOMString qualifiedName, DOMString value);
357
- [CEReactions] void setAttributeNS(DOMString? namespace, DOMString qualifiedName, DOMString value);
358
- [CEReactions] void removeAttribute(DOMString qualifiedName);
359
- [CEReactions] void removeAttributeNS(DOMString? namespace, DOMString localName);
356
+ [CEReactions] undefined setAttribute(DOMString qualifiedName, DOMString value);
357
+ [CEReactions] undefined setAttributeNS(DOMString? namespace, DOMString qualifiedName, DOMString value);
358
+ [CEReactions] undefined removeAttribute(DOMString qualifiedName);
359
+ [CEReactions] undefined removeAttributeNS(DOMString? namespace, DOMString localName);
360
360
[CEReactions] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
361
361
boolean hasAttribute(DOMString qualifiedName);
362
362
boolean hasAttributeNS(DOMString? namespace, DOMString localName);
@@ -379,7 +379,7 @@ interface Element : Node {
379
379
HTMLCollection getElementsByClassName(DOMString classNames);
380
380
381
381
[CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // historical
382
- void insertAdjacentText(DOMString where, DOMString data); // historical
382
+ undefined insertAdjacentText(DOMString where, DOMString data); // historical
383
383
};
384
384
385
385
dictionary ShadowRootInit {
@@ -417,10 +417,10 @@ interface CharacterData : Node {
417
417
attribute [LegacyNullToEmptyString] DOMString data;
418
418
readonly attribute unsigned long length;
419
419
DOMString substringData(unsigned long offset, unsigned long count);
420
- void appendData(DOMString data);
421
- void insertData(unsigned long offset, DOMString data);
422
- void deleteData(unsigned long offset, unsigned long count);
423
- void replaceData(unsigned long offset, unsigned long count, DOMString data);
420
+ undefined appendData(DOMString data);
421
+ undefined insertData(unsigned long offset, DOMString data);
422
+ undefined deleteData(unsigned long offset, unsigned long count);
423
+ undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
424
424
};
425
425
426
426
[Exposed=Window]
@@ -470,30 +470,30 @@ interface Range : AbstractRange {
470
470
471
471
readonly attribute Node commonAncestorContainer;
472
472
473
- void setStart(Node node, unsigned long offset);
474
- void setEnd(Node node, unsigned long offset);
475
- void setStartBefore(Node node);
476
- void setStartAfter(Node node);
477
- void setEndBefore(Node node);
478
- void setEndAfter(Node node);
479
- void collapse(optional boolean toStart = false);
480
- void selectNode(Node node);
481
- void selectNodeContents(Node node);
473
+ undefined setStart(Node node, unsigned long offset);
474
+ undefined setEnd(Node node, unsigned long offset);
475
+ undefined setStartBefore(Node node);
476
+ undefined setStartAfter(Node node);
477
+ undefined setEndBefore(Node node);
478
+ undefined setEndAfter(Node node);
479
+ undefined collapse(optional boolean toStart = false);
480
+ undefined selectNode(Node node);
481
+ undefined selectNodeContents(Node node);
482
482
483
483
const unsigned short START_TO_START = 0;
484
484
const unsigned short START_TO_END = 1;
485
485
const unsigned short END_TO_END = 2;
486
486
const unsigned short END_TO_START = 3;
487
487
short compareBoundaryPoints(unsigned short how, Range sourceRange);
488
488
489
- [CEReactions] void deleteContents();
489
+ [CEReactions] undefined deleteContents();
490
490
[CEReactions, NewObject] DocumentFragment extractContents();
491
491
[CEReactions, NewObject] DocumentFragment cloneContents();
492
- [CEReactions] void insertNode(Node node);
493
- [CEReactions] void surroundContents(Node newParent);
492
+ [CEReactions] undefined insertNode(Node node);
493
+ [CEReactions] undefined surroundContents(Node newParent);
494
494
495
495
[NewObject] Range cloneRange();
496
- void detach();
496
+ undefined detach();
497
497
498
498
boolean isPointInRange(Node node, unsigned long offset);
499
499
short comparePoint(Node node, unsigned long offset);
@@ -514,7 +514,7 @@ interface NodeIterator {
514
514
Node? nextNode();
515
515
Node? previousNode();
516
516
517
- void detach();
517
+ undefined detach();
518
518
};
519
519
520
520
[Exposed=Window]
@@ -562,8 +562,8 @@ interface DOMTokenList {
562
562
readonly attribute unsigned long length;
563
563
getter DOMString? item(unsigned long index);
564
564
boolean contains(DOMString token);
565
- [CEReactions] void add(DOMString... tokens);
566
- [CEReactions] void remove(DOMString... tokens);
565
+ [CEReactions] undefined add(DOMString... tokens);
566
+ [CEReactions] undefined remove(DOMString... tokens);
567
567
[CEReactions] boolean toggle(DOMString token, optional boolean force);
568
568
[CEReactions] boolean replace(DOMString token, DOMString newToken);
569
569
boolean supports(DOMString token);
0 commit comments