Sync the dom.generated.d.ts files from TSJS repo

This commit is contained in:
zhengbli 2015-11-30 12:40:41 -08:00
parent 78ba4b2e9e
commit 180eba5568
2 changed files with 14 additions and 11 deletions

View file

@ -2058,6 +2058,7 @@ interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEven
* Gets or sets the version attribute specified in the declaration of an XML document. * Gets or sets the version attribute specified in the declaration of an XML document.
*/ */
xmlVersion: string; xmlVersion: string;
currentScript: HTMLScriptElement;
adoptNode(source: Node): Node; adoptNode(source: Node): Node;
captureEvents(): void; captureEvents(): void;
clear(): void; clear(): void;
@ -2977,6 +2978,7 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
webkitRequestFullScreen(): void; webkitRequestFullScreen(): void;
webkitRequestFullscreen(): void; webkitRequestFullscreen(): void;
getElementsByClassName(classNames: string): NodeListOf<Element>; getElementsByClassName(classNames: string): NodeListOf<Element>;
matches(selector: string): boolean;
addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void;
@ -3961,7 +3963,6 @@ interface HTMLElement extends Element {
title: string; title: string;
blur(): void; blur(): void;
click(): void; click(): void;
contains(child: HTMLElement): boolean;
dragDrop(): boolean; dragDrop(): boolean;
focus(): void; focus(): void;
insertAdjacentElement(position: string, insertedElement: Element): Element; insertAdjacentElement(position: string, insertedElement: Element): Element;
@ -6135,7 +6136,7 @@ interface HTMLSelectElement extends HTMLElement {
* Sets or retrieves the name of the object. * Sets or retrieves the name of the object.
*/ */
name: string; name: string;
options: HTMLSelectElement; options: HTMLCollection;
/** /**
* When present, marks an element that can't be submitted without a value. * When present, marks an element that can't be submitted without a value.
*/ */
@ -6421,19 +6422,19 @@ interface HTMLTableElement extends HTMLElement {
/** /**
* Creates an empty caption element in the table. * Creates an empty caption element in the table.
*/ */
createCaption(): HTMLElement; createCaption(): HTMLTableCaptionElement;
/** /**
* Creates an empty tBody element in the table. * Creates an empty tBody element in the table.
*/ */
createTBody(): HTMLElement; createTBody(): HTMLTableSectionElement;
/** /**
* Creates an empty tFoot element in the table. * Creates an empty tFoot element in the table.
*/ */
createTFoot(): HTMLElement; createTFoot(): HTMLTableSectionElement;
/** /**
* Returns the tHead element object if successful, or null otherwise. * Returns the tHead element object if successful, or null otherwise.
*/ */
createTHead(): HTMLElement; createTHead(): HTMLTableSectionElement;
/** /**
* Deletes the caption element and its contents from the table. * Deletes the caption element and its contents from the table.
*/ */
@ -6455,7 +6456,7 @@ interface HTMLTableElement extends HTMLElement {
* Creates a new row (tr) in the table, and adds the row to the rows collection. * Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/ */
insertRow(index?: number): HTMLElement; insertRow(index?: number): HTMLTableRowElement;
} }
declare var HTMLTableElement: { declare var HTMLTableElement: {
@ -6506,7 +6507,7 @@ interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment {
* Creates a new cell in the table row, and adds the cell to the cells collection. * Creates a new cell in the table row, and adds the cell to the cells collection.
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
*/ */
insertCell(index?: number): HTMLElement; insertCell(index?: number): HTMLTableCellElement;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
} }
@ -6533,7 +6534,7 @@ interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment {
* Creates a new row (tr) in the table, and adds the row to the rows collection. * Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/ */
insertRow(index?: number): HTMLElement; insertRow(index?: number): HTMLTableRowElement;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
} }
@ -7071,7 +7072,7 @@ declare var IDBVersionChangeEvent: {
} }
interface ImageData { interface ImageData {
data: number[]; data: Uint8ClampedArray;
height: number; height: number;
width: number; width: number;
} }
@ -7869,6 +7870,7 @@ interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorConte
getGamepads(): Gamepad[]; getGamepads(): Gamepad[];
javaEnabled(): boolean; javaEnabled(): boolean;
msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void; msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
vibrate(pattern: number | number[]): boolean;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
} }
@ -7909,6 +7911,7 @@ interface Node extends EventTarget {
normalize(): void; normalize(): void;
removeChild(oldChild: Node): Node; removeChild(oldChild: Node): Node;
replaceChild(newChild: Node, oldChild: Node): Node; replaceChild(newChild: Node, oldChild: Node): Node;
contains(node: Node): boolean;
ATTRIBUTE_NODE: number; ATTRIBUTE_NODE: number;
CDATA_SECTION_NODE: number; CDATA_SECTION_NODE: number;
COMMENT_NODE: number; COMMENT_NODE: number;

View file

@ -460,7 +460,7 @@ declare var IDBVersionChangeEvent: {
} }
interface ImageData { interface ImageData {
data: number[]; data: Uint8ClampedArray;
height: number; height: number;
width: number; width: number;
} }