@@ -9,7 +9,7 @@ interface Event { |
9 | 9 |
|
10 | 10 | readonly attribute DOMString type; |
11 | 11 | readonly attribute EventTarget? target; |
12 | | - readonly attribute EventTarget? srcElement; // historical |
| 12 | + readonly attribute EventTarget? srcElement; // legacy |
13 | 13 | readonly attribute EventTarget? currentTarget; |
14 | 14 | sequence<EventTarget> composedPath(); |
15 | 15 |
|
@@ -20,20 +20,20 @@ interface Event { |
20 | 20 | readonly attribute unsigned short eventPhase; |
21 | 21 |
|
22 | 22 | undefined stopPropagation(); |
23 | | - attribute boolean cancelBubble; // historical alias of .stopPropagation |
| 23 | + attribute boolean cancelBubble; // legacy alias of .stopPropagation() |
24 | 24 | undefined stopImmediatePropagation(); |
25 | 25 |
|
26 | 26 | readonly attribute boolean bubbles; |
27 | 27 | readonly attribute boolean cancelable; |
28 | | - attribute boolean returnValue; // historical |
| 28 | + attribute boolean returnValue; // legacy |
29 | 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 | | - undefined 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); // legacy |
37 | 37 | }; |
38 | 38 |
|
39 | 39 | dictionary EventInit { |
@@ -43,7 +43,7 @@ dictionary EventInit { |
43 | 43 | }; |
44 | 44 |
|
45 | 45 | partial interface Window { |
46 | | - [Replaceable] readonly attribute any event; // historical |
| 46 | + [Replaceable] readonly attribute (Event or undefined) event; // legacy |
47 | 47 | }; |
48 | 48 |
|
49 | 49 | [Exposed=(Window,Worker)] |
@@ -52,7 +52,7 @@ interface CustomEvent : Event { |
52 | 52 |
|
53 | 53 | readonly attribute any detail; |
54 | 54 |
|
55 | | - undefined 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); // legacy |
56 | 56 | }; |
57 | 57 |
|
58 | 58 | dictionary CustomEventInit : EventInit { |
@@ -79,6 +79,7 @@ dictionary EventListenerOptions { |
79 | 79 | dictionary AddEventListenerOptions : EventListenerOptions { |
80 | 80 | boolean passive = false; |
81 | 81 | boolean once = false; |
| 82 | + AbortSignal signal; |
82 | 83 | }; |
83 | 84 |
|
84 | 85 | [Exposed=(Window,Worker)] |
@@ -201,14 +202,14 @@ interface Node : EventTarget { |
201 | 202 | const unsigned short ATTRIBUTE_NODE = 2; |
202 | 203 | const unsigned short TEXT_NODE = 3; |
203 | 204 | const unsigned short CDATA_SECTION_NODE = 4; |
204 | | - const unsigned short ENTITY_REFERENCE_NODE = 5; // historical |
205 | | - const unsigned short ENTITY_NODE = 6; // historical |
| 205 | + const unsigned short ENTITY_REFERENCE_NODE = 5; // legacy |
| 206 | + const unsigned short ENTITY_NODE = 6; // legacy |
206 | 207 | const unsigned short PROCESSING_INSTRUCTION_NODE = 7; |
207 | 208 | const unsigned short COMMENT_NODE = 8; |
208 | 209 | const unsigned short DOCUMENT_NODE = 9; |
209 | 210 | const unsigned short DOCUMENT_TYPE_NODE = 10; |
210 | 211 | const unsigned short DOCUMENT_FRAGMENT_NODE = 11; |
211 | | - const unsigned short NOTATION_NODE = 12; // historical |
| 212 | + const unsigned short NOTATION_NODE = 12; // legacy |
212 | 213 | readonly attribute unsigned short nodeType; |
213 | 214 | readonly attribute DOMString nodeName; |
214 | 215 |
|
@@ -232,7 +233,7 @@ interface Node : EventTarget { |
232 | 233 |
|
233 | 234 | [CEReactions, NewObject] Node cloneNode(optional boolean deep = false); |
234 | 235 | boolean isEqualNode(Node? otherNode); |
235 | | - boolean isSameNode(Node? otherNode); // historical alias of === |
| 236 | + boolean isSameNode(Node? otherNode); // legacy alias of === |
236 | 237 |
|
237 | 238 | const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; |
238 | 239 | const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; |
@@ -266,8 +267,8 @@ interface Document : Node { |
266 | 267 | readonly attribute USVString documentURI; |
267 | 268 | readonly attribute DOMString compatMode; |
268 | 269 | readonly attribute DOMString characterSet; |
269 | | - readonly attribute DOMString charset; // historical alias of .characterSet |
270 | | - readonly attribute DOMString inputEncoding; // historical alias of .characterSet |
| 270 | + readonly attribute DOMString charset; // legacy alias of .characterSet |
| 271 | + readonly attribute DOMString inputEncoding; // legacy alias of .characterSet |
271 | 272 | readonly attribute DOMString contentType; |
272 | 273 |
|
273 | 274 | readonly attribute DocumentType? doctype; |
@@ -290,7 +291,7 @@ interface Document : Node { |
290 | 291 | [NewObject] Attr createAttribute(DOMString localName); |
291 | 292 | [NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName); |
292 | 293 |
|
293 | | - [NewObject] Event createEvent(DOMString interface); // historical |
| 294 | + [NewObject] Event createEvent(DOMString interface); // legacy |
294 | 295 |
|
295 | 296 | [NewObject] Range createRange(); |
296 | 297 |
|
@@ -372,14 +373,14 @@ interface Element : Node { |
372 | 373 |
|
373 | 374 | Element? closest(DOMString selectors); |
374 | 375 | boolean matches(DOMString selectors); |
375 | | - boolean webkitMatchesSelector(DOMString selectors); // historical alias of .matches |
| 376 | + boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches |
376 | 377 |
|
377 | 378 | HTMLCollection getElementsByTagName(DOMString qualifiedName); |
378 | 379 | HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); |
379 | 380 | HTMLCollection getElementsByClassName(DOMString classNames); |
380 | 381 |
|
381 | | - [CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // historical |
382 | | - undefined insertAdjacentText(DOMString where, DOMString data); // historical |
| 382 | + [CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // legacy |
| 383 | + undefined insertAdjacentText(DOMString where, DOMString data); // legacy |
383 | 384 | }; |
384 | 385 |
|
385 | 386 | dictionary ShadowRootInit { |
@@ -545,14 +546,14 @@ callback interface NodeFilter { |
545 | 546 | const unsigned long SHOW_ATTRIBUTE = 0x2; |
546 | 547 | const unsigned long SHOW_TEXT = 0x4; |
547 | 548 | const unsigned long SHOW_CDATA_SECTION = 0x8; |
548 | | - const unsigned long SHOW_ENTITY_REFERENCE = 0x10; // historical |
549 | | - const unsigned long SHOW_ENTITY = 0x20; // historical |
| 549 | + const unsigned long SHOW_ENTITY_REFERENCE = 0x10; // legacy |
| 550 | + const unsigned long SHOW_ENTITY = 0x20; // legacy |
550 | 551 | const unsigned long SHOW_PROCESSING_INSTRUCTION = 0x40; |
551 | 552 | const unsigned long SHOW_COMMENT = 0x80; |
552 | 553 | const unsigned long SHOW_DOCUMENT = 0x100; |
553 | 554 | const unsigned long SHOW_DOCUMENT_TYPE = 0x200; |
554 | 555 | const unsigned long SHOW_DOCUMENT_FRAGMENT = 0x400; |
555 | | - const unsigned long SHOW_NOTATION = 0x800; // historical |
| 556 | + const unsigned long SHOW_NOTATION = 0x800; // legacy |
556 | 557 |
|
557 | 558 | unsigned short acceptNode(Node node); |
558 | 559 | }; |
|