@@ -4887,7 +4887,11 @@ interface CSSStyleDeclaration {
4887
4887
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
4888
4888
*/
4889
4889
webkitJustifyContent: string;
4890
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
4890
+ /**
4891
+ * @deprecated This is a legacy alias of `lineClamp`.
4892
+ *
4893
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp)
4894
+ */
4891
4895
webkitLineClamp: string;
4892
4896
/**
4893
4897
* @deprecated This is a legacy alias of `mask`.
@@ -5549,6 +5553,8 @@ interface CanvasShadowStyles {
5549
5553
}
5550
5554
5551
5555
interface CanvasState {
5556
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
5557
+ isContextLost(): boolean;
5552
5558
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
5553
5559
reset(): void;
5554
5560
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
@@ -7263,6 +7269,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7263
7269
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
7264
7270
createEvent(eventInterface: "StorageEvent"): StorageEvent;
7265
7271
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
7272
+ createEvent(eventInterface: "TextEvent"): TextEvent;
7266
7273
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
7267
7274
createEvent(eventInterface: "TouchEvent"): TouchEvent;
7268
7275
createEvent(eventInterface: "TrackEvent"): TrackEvent;
@@ -7699,7 +7706,7 @@ interface ElementEventMap {
7699
7706
*
7700
7707
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
7701
7708
*/
7702
- interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
7709
+ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {
7703
7710
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
7704
7711
readonly attributes: NamedNodeMap;
7705
7712
/**
@@ -7728,6 +7735,8 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
7728
7735
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
7729
7736
*/
7730
7737
id: string;
7738
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
7739
+ innerHTML: string;
7731
7740
/**
7732
7741
* Returns the local name.
7733
7742
*
@@ -7867,7 +7876,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
7867
7876
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
7868
7877
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
7869
7878
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
7870
- insertAdjacentHTML(position: InsertPosition, text : string): void;
7879
+ insertAdjacentHTML(position: InsertPosition, string : string): void;
7871
7880
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
7872
7881
insertAdjacentText(where: InsertPosition, data: string): void;
7873
7882
/**
@@ -8957,7 +8966,9 @@ interface GlobalEventHandlersEventMap {
8957
8966
"compositionend": CompositionEvent;
8958
8967
"compositionstart": CompositionEvent;
8959
8968
"compositionupdate": CompositionEvent;
8969
+ "contextlost": Event;
8960
8970
"contextmenu": MouseEvent;
8971
+ "contextrestored": Event;
8961
8972
"copy": ClipboardEvent;
8962
8973
"cuechange": Event;
8963
8974
"cut": ClipboardEvent;
@@ -9098,13 +9109,17 @@ interface GlobalEventHandlers {
9098
9109
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
9099
9110
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
9100
9111
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
9112
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
9113
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
9101
9114
/**
9102
9115
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
9103
9116
* @param ev The mouse event.
9104
9117
*
9105
9118
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
9106
9119
*/
9107
9120
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
9121
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
9122
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
9108
9123
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
9109
9124
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
9110
9125
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
@@ -10873,6 +10888,7 @@ interface HTMLIFrameElement extends HTMLElement {
10873
10888
name: string;
10874
10889
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
10875
10890
referrerPolicy: ReferrerPolicy;
10891
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox) */
10876
10892
readonly sandbox: DOMTokenList;
10877
10893
/**
10878
10894
* Sets or retrieves whether the frame can be scrolled.
@@ -11429,6 +11445,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
11429
11445
hreflang: string;
11430
11446
imageSizes: string;
11431
11447
imageSrcset: string;
11448
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity) */
11432
11449
integrity: string;
11433
11450
/** Sets or retrieves the media type. */
11434
11451
media: string;
@@ -11454,7 +11471,11 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
11454
11471
* @deprecated
11455
11472
*/
11456
11473
target: string;
11457
- /** Sets or retrieves the MIME type of the object. */
11474
+ /**
11475
+ * Sets or retrieves the MIME type of the object.
11476
+ *
11477
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)
11478
+ */
11458
11479
type: string;
11459
11480
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11460
11481
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12478,6 +12499,7 @@ declare var HTMLQuoteElement: {
12478
12499
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
12479
12500
*/
12480
12501
interface HTMLScriptElement extends HTMLElement {
12502
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async) */
12481
12503
async: boolean;
12482
12504
/**
12483
12505
* Sets or retrieves the character set used to encode the object.
@@ -12486,28 +12508,47 @@ interface HTMLScriptElement extends HTMLElement {
12486
12508
charset: string;
12487
12509
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
12488
12510
crossOrigin: string | null;
12489
- /** Sets or retrieves the status of the script. */
12511
+ /**
12512
+ * Sets or retrieves the status of the script.
12513
+ *
12514
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)
12515
+ */
12490
12516
defer: boolean;
12491
12517
/**
12492
12518
* Sets or retrieves the event for which the script is written.
12493
12519
* @deprecated
12494
12520
*/
12495
12521
event: string;
12522
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority) */
12496
12523
fetchPriority: string;
12497
12524
/**
12498
12525
* Sets or retrieves the object that is bound to the event script.
12499
12526
* @deprecated
12500
12527
*/
12501
12528
htmlFor: string;
12529
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity) */
12502
12530
integrity: string;
12531
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule) */
12503
12532
noModule: boolean;
12504
12533
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
12505
12534
referrerPolicy: string;
12506
- /** Retrieves the URL to an external file that contains the source code or data. */
12535
+ /**
12536
+ * Retrieves the URL to an external file that contains the source code or data.
12537
+ *
12538
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)
12539
+ */
12507
12540
src: string;
12508
- /** Retrieves or sets the text of the object as a string. */
12541
+ /**
12542
+ * Retrieves or sets the text of the object as a string.
12543
+ *
12544
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
12545
+ */
12509
12546
text: string;
12510
- /** Sets or retrieves the MIME type for the associated scripting engine. */
12547
+ /**
12548
+ * Sets or retrieves the MIME type for the associated scripting engine.
12549
+ *
12550
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)
12551
+ */
12511
12552
type: string;
12512
12553
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
12513
12554
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -13317,6 +13358,11 @@ interface HTMLTemplateElement extends HTMLElement {
13317
13358
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
13318
13359
*/
13319
13360
readonly content: DocumentFragment;
13361
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable) */
13362
+ shadowRootClonable: boolean;
13363
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus) */
13364
+ shadowRootDelegatesFocus: boolean;
13365
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode) */
13320
13366
shadowRootMode: string;
13321
13367
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13322
13368
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -14503,11 +14549,6 @@ declare var ImageData: {
14503
14549
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
14504
14550
};
14505
14551
14506
- interface InnerHTML {
14507
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
14508
- innerHTML: string;
14509
- }
14510
-
14511
14552
/**
14512
14553
* Available only in secure contexts.
14513
14554
*
@@ -16896,8 +16937,6 @@ declare var OffscreenCanvas: {
16896
16937
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
16897
16938
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
16898
16939
readonly canvas: OffscreenCanvas;
16899
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
16900
- commit(): void;
16901
16940
}
16902
16941
16903
16942
declare var OffscreenCanvasRenderingContext2D: {
@@ -18497,6 +18536,7 @@ declare var RTCPeerConnectionIceEvent: {
18497
18536
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
18498
18537
*/
18499
18538
interface RTCRtpReceiver {
18539
+ jitterBufferTarget: DOMHighResTimeStamp | null;
18500
18540
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
18501
18541
readonly track: MediaStreamTrack;
18502
18542
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
@@ -18575,7 +18615,7 @@ interface RTCRtpTransceiver {
18575
18615
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
18576
18616
readonly sender: RTCRtpSender;
18577
18617
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
18578
- setCodecPreferences(codecs: RTCRtpCodecCapability []): void;
18618
+ setCodecPreferences(codecs: RTCRtpCodec []): void;
18579
18619
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
18580
18620
stop(): void;
18581
18621
}
@@ -18695,7 +18735,7 @@ interface Range extends AbstractRange {
18695
18735
*/
18696
18736
comparePoint(node: Node, offset: number): number;
18697
18737
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
18698
- createContextualFragment(fragment : string): DocumentFragment;
18738
+ createContextualFragment(string : string): DocumentFragment;
18699
18739
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
18700
18740
deleteContents(): void;
18701
18741
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
@@ -21369,6 +21409,7 @@ interface Selection {
21369
21409
readonly anchorNode: Node | null;
21370
21410
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
21371
21411
readonly anchorOffset: number;
21412
+ readonly direction: string;
21372
21413
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
21373
21414
readonly focusNode: Node | null;
21374
21415
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
@@ -21541,13 +21582,15 @@ interface ShadowRootEventMap {
21541
21582
}
21542
21583
21543
21584
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
21544
- interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
21585
+ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
21545
21586
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
21546
21587
readonly clonable: boolean;
21547
21588
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
21548
21589
readonly delegatesFocus: boolean;
21549
21590
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
21550
21591
readonly host: Element;
21592
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML) */
21593
+ innerHTML: string;
21551
21594
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
21552
21595
readonly mode: ShadowRootMode;
21553
21596
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
@@ -22294,6 +22337,16 @@ declare var TextEncoderStream: {
22294
22337
new(): TextEncoderStream;
22295
22338
};
22296
22339
22340
+ interface TextEvent extends UIEvent {
22341
+ readonly data: string;
22342
+ initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;
22343
+ }
22344
+
22345
+ declare var TextEvent: {
22346
+ prototype: TextEvent;
22347
+ new(): TextEvent;
22348
+ };
22349
+
22297
22350
/**
22298
22351
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
22299
22352
*
@@ -27855,13 +27908,17 @@ declare var onchange: ((this: Window, ev: Event) => any) | null;
27855
27908
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
27856
27909
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
27857
27910
declare var onclose: ((this: Window, ev: Event) => any) | null;
27911
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/webglcontextlost_event) */
27912
+ declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
27858
27913
/**
27859
27914
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
27860
27915
* @param ev The mouse event.
27861
27916
*
27862
27917
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
27863
27918
*/
27864
27919
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
27920
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
27921
+ declare var oncontextrestored: ((this: Window, ev: Event) => any) | null;
27865
27922
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
27866
27923
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
27867
27924
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
0 commit comments