@@ -126,6 +126,7 @@ interface KeyAlgorithm {
126126}
127127
128128interface KeyboardEventInit extends EventModifierInit {
129+ code?: string;
129130 key?: string;
130131 location?: number;
131132 repeat?: boolean;
@@ -2288,7 +2289,7 @@ declare var DeviceRotationRate: {
22882289 new(): DeviceRotationRate;
22892290}
22902291
2291- interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
2292+ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode {
22922293 /**
22932294 * Sets or gets the URL for the current document.
22942295 */
@@ -3351,7 +3352,7 @@ declare var Document: {
33513352 new(): Document;
33523353}
33533354
3354- interface DocumentFragment extends Node, NodeSelector {
3355+ interface DocumentFragment extends Node, NodeSelector, ParentNode {
33553356 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
33563357}
33573358
@@ -3420,7 +3421,7 @@ declare var EXT_texture_filter_anisotropic: {
34203421 readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
34213422}
34223423
3423- interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
3424+ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode {
34243425 readonly classList: DOMTokenList;
34253426 className: string;
34263427 readonly clientHeight: number;
@@ -3675,6 +3676,16 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
36753676 getElementsByClassName(classNames: string): NodeListOf<Element>;
36763677 matches(selector: string): boolean;
36773678 closest(selector: string): Element | null;
3679+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
3680+ scroll(options?: ScrollToOptions): void;
3681+ scroll(x: number, y: number): void;
3682+ scrollTo(options?: ScrollToOptions): void;
3683+ scrollTo(x: number, y: number): void;
3684+ scrollBy(options?: ScrollToOptions): void;
3685+ scrollBy(x: number, y: number): void;
3686+ insertAdjacentElement(position: string, insertedElement: Element): Element | null;
3687+ insertAdjacentHTML(where: string, html: string): void;
3688+ insertAdjacentText(where: string, text: string): void;
36783689 addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
36793690 addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
36803691 addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -4446,7 +4457,7 @@ interface HTMLCanvasElement extends HTMLElement {
44464457 * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
44474458 */
44484459 toDataURL(type?: string, ...args: any[]): string;
4449- toBlob(callback: (result: Blob | null) => void, ... arguments: any[]): void;
4460+ toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
44504461}
44514462
44524463declare var HTMLCanvasElement: {
@@ -4621,11 +4632,7 @@ interface HTMLElement extends Element {
46214632 click(): void;
46224633 dragDrop(): boolean;
46234634 focus(): void;
4624- insertAdjacentElement(position: string, insertedElement: Element): Element;
4625- insertAdjacentHTML(where: string, html: string): void;
4626- insertAdjacentText(where: string, text: string): void;
46274635 msGetInputContext(): MSInputMethodContext;
4628- scrollIntoView(top?: boolean): void;
46294636 setActive(): void;
46304637 addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
46314638 addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -5890,6 +5897,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
58905897 */
58915898 type: string;
58925899 import?: Document;
5900+ integrity: string;
58935901 addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
58945902}
58955903
@@ -6178,7 +6186,7 @@ interface HTMLMediaElement extends HTMLElement {
61786186 */
61796187 canPlayType(type: string): string;
61806188 /**
6181- * Fires immediately after the client loads the object .
6189+ * Resets the audio or video object and loads a new media resource .
61826190 */
61836191 load(): void;
61846192 /**
@@ -6751,6 +6759,7 @@ interface HTMLScriptElement extends HTMLElement {
67516759 * Sets or retrieves the MIME type for the associated scripting engine.
67526760 */
67536761 type: string;
6762+ integrity: string;
67546763}
67556764
67566765declare var HTMLScriptElement: {
@@ -7756,6 +7765,7 @@ interface KeyboardEvent extends UIEvent {
77567765 readonly repeat: boolean;
77577766 readonly shiftKey: boolean;
77587767 readonly which: number;
7768+ readonly code: string;
77597769 getModifierState(keyArg: string): boolean;
77607770 initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
77617771 readonly DOM_KEY_LOCATION_JOYSTICK: number;
@@ -9128,6 +9138,7 @@ interface PerformanceTiming {
91289138 readonly responseStart: number;
91299139 readonly unloadEventEnd: number;
91309140 readonly unloadEventStart: number;
9141+ readonly secureConnectionStart: number;
91319142 toJSON(): any;
91329143}
91339144
@@ -11405,8 +11416,8 @@ declare var StereoPannerNode: {
1140511416interface Storage {
1140611417 readonly length: number;
1140711418 clear(): void;
11408- getItem(key: string): string;
11409- key(index: number): string;
11419+ getItem(key: string): string | null ;
11420+ key(index: number): string | null ;
1141011421 removeItem(key: string): void;
1141111422 setItem(key: string, data: string): void;
1141211423 [key: string]: any;
@@ -12947,7 +12958,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1294712958 onunload: (this: this, ev: Event) => any;
1294812959 onvolumechange: (this: this, ev: Event) => any;
1294912960 onwaiting: (this: this, ev: Event) => any;
12950- readonly opener: Window ;
12961+ opener: any ;
1295112962 orientation: string | number;
1295212963 readonly outerHeight: number;
1295312964 readonly outerWidth: number;
@@ -13002,6 +13013,9 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1300213013 webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
1300313014 webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
1300413015 webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
13016+ scroll(options?: ScrollToOptions): void;
13017+ scrollTo(options?: ScrollToOptions): void;
13018+ scrollBy(options?: ScrollToOptions): void;
1300513019 addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
1300613020 addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
1300713021 addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
@@ -14029,6 +14043,20 @@ interface ProgressEventInit extends EventInit {
1402914043 total?: number;
1403014044}
1403114045
14046+ interface ScrollOptions {
14047+ behavior?: ScrollBehavior;
14048+ }
14049+
14050+ interface ScrollToOptions extends ScrollOptions {
14051+ left?: number;
14052+ top?: number;
14053+ }
14054+
14055+ interface ScrollIntoViewOptions extends ScrollOptions {
14056+ block?: ScrollLogicalPosition;
14057+ inline?: ScrollLogicalPosition;
14058+ }
14059+
1403214060interface ClipboardEventInit extends EventInit {
1403314061 data?: string;
1403414062 dataType?: string;
@@ -14072,7 +14100,7 @@ interface EcdsaParams extends Algorithm {
1407214100}
1407314101
1407414102interface EcKeyGenParams extends Algorithm {
14075- typedCurve : string;
14103+ namedCurve : string;
1407614104}
1407714105
1407814106interface EcKeyAlgorithm extends KeyAlgorithm {
@@ -14208,6 +14236,13 @@ interface JsonWebKey {
1420814236 k?: string;
1420914237}
1421014238
14239+ interface ParentNode {
14240+ readonly children: HTMLCollection;
14241+ readonly firstElementChild: Element;
14242+ readonly lastElementChild: Element;
14243+ readonly childElementCount: number;
14244+ }
14245+
1421114246declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
1421214247
1421314248interface ErrorEventHandler {
@@ -14278,7 +14313,7 @@ declare var location: Location;
1427814313declare var locationbar: BarProp;
1427914314declare var menubar: BarProp;
1428014315declare var msCredentials: MSCredentials;
14281- declare var name: string ;
14316+ declare const name: never ;
1428214317declare var navigator: Navigator;
1428314318declare var offscreenBuffering: string | boolean;
1428414319declare var onabort: (this: Window, ev: UIEvent) => any;
@@ -14372,7 +14407,7 @@ declare var ontouchstart: (ev: TouchEvent) => any;
1437214407declare var onunload: (this: Window, ev: Event) => any;
1437314408declare var onvolumechange: (this: Window, ev: Event) => any;
1437414409declare var onwaiting: (this: Window, ev: Event) => any;
14375- declare var opener: Window ;
14410+ declare var opener: any ;
1437614411declare var orientation: string | number;
1437714412declare var outerHeight: number;
1437814413declare var outerWidth: number;
@@ -14425,6 +14460,9 @@ declare function webkitCancelAnimationFrame(handle: number): void;
1442514460declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
1442614461declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
1442714462declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
14463+ declare function scroll(options?: ScrollToOptions): void;
14464+ declare function scrollTo(options?: ScrollToOptions): void;
14465+ declare function scrollBy(options?: ScrollToOptions): void;
1442814466declare function toString(): string;
1442914467declare function addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1443014468declare function dispatchEvent(evt: Event): boolean;
@@ -14580,6 +14618,8 @@ type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
1458014618type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
1458114619type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
1458214620type payloadtype = number;
14621+ type ScrollBehavior = "auto" | "instant" | "smooth";
14622+ type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
1458314623type IDBValidKey = number | string | Date | IDBArrayKey;
1458414624type BufferSource = ArrayBuffer | ArrayBufferView;
1458514625type MouseWheelEvent = WheelEvent;
0 commit comments