typescript-src 0.8.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/support/lib.d.ts CHANGED
@@ -47,13 +47,13 @@ declare function parseFloat(string: string): number;
47
47
  * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
48
48
  * @param number A numeric value.
49
49
  */
50
- declare function isNaN(number: number): bool;
50
+ declare function isNaN(number: number): boolean;
51
51
 
52
52
  /**
53
53
  * Determines whether a supplied number is finite.
54
54
  * @param number Any numeric value.
55
55
  */
56
- declare function isFinite(number: number): bool;
56
+ declare function isFinite(number: number): boolean;
57
57
 
58
58
  /**
59
59
  * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
@@ -80,10 +80,10 @@ declare function encodeURI(uri: string): string;
80
80
  declare function encodeURIComponent(uriComponent: string): string;
81
81
 
82
82
  interface PropertyDescriptor {
83
- configurable?: bool;
84
- enumerable?: bool;
83
+ configurable?: boolean;
84
+ enumerable?: boolean;
85
85
  value?: any;
86
- writable?: bool;
86
+ writable?: boolean;
87
87
  get?(): any;
88
88
  set?(v: any): void;
89
89
  }
@@ -106,19 +106,19 @@ interface Object {
106
106
  * Determines whether an object has a property with the specified name.
107
107
  * @param v A property name.
108
108
  */
109
- hasOwnProperty(v: string): bool;
109
+ hasOwnProperty(v: string): boolean;
110
110
 
111
111
  /**
112
112
  * Determines whether an object exists in another object's prototype chain.
113
113
  * @param v Another object whose prototype chain is to be checked.
114
114
  */
115
- isPrototypeOf(v: Object): bool;
115
+ isPrototypeOf(v: Object): boolean;
116
116
 
117
117
  /**
118
118
  * Determines whether a specified property is enumerable.
119
119
  * @param v A property name.
120
120
  */
121
- propertyIsEnumerable(v: string): bool;
121
+ propertyIsEnumerable(v: string): boolean;
122
122
 
123
123
  [s: string]: any;
124
124
  }
@@ -199,19 +199,19 @@ declare var Object: {
199
199
  * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
200
200
  * @param o Object to test.
201
201
  */
202
- isSealed(o: any): bool;
202
+ isSealed(o: any): boolean;
203
203
 
204
204
  /**
205
205
  * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
206
206
  * @param o Object to test.
207
207
  */
208
- isFrozen(o: any): bool;
208
+ isFrozen(o: any): boolean;
209
209
 
210
210
  /**
211
211
  * Returns a value that indicates whether new properties can be added to an object.
212
212
  * @param o Object to test.
213
213
  */
214
- isExtensible(o: any): bool;
214
+ isExtensible(o: any): boolean;
215
215
 
216
216
  /**
217
217
  * Returns the names of the enumerable properties and methods of an object.
@@ -429,7 +429,7 @@ interface Boolean {
429
429
  }
430
430
  declare var Boolean: {
431
431
  new (value?: any): Boolean;
432
- (value?: any): bool;
432
+ (value?: any): boolean;
433
433
  prototype: Boolean;
434
434
  }
435
435
 
@@ -767,7 +767,7 @@ interface RegExpExecArray {
767
767
  toString(): string;
768
768
  toLocaleString(): string;
769
769
  concat(...items: string[][]): string[];
770
- join(seperator?: string): string;
770
+ join(separator?: string): string;
771
771
  pop(): string;
772
772
  push(...items: string[]): number;
773
773
  reverse(): string[];
@@ -780,11 +780,11 @@ interface RegExpExecArray {
780
780
 
781
781
  indexOf(searchElement: string, fromIndex?: number): number;
782
782
  lastIndexOf(searchElement: string, fromIndex?: number): number;
783
- every(callbackfn: (value: string, index: number, array: string[]) => bool, thisArg?: any): bool;
784
- some(callbackfn: (value: string, index: number, array: string[]) => bool, thisArg?: any): bool;
783
+ every(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): boolean;
784
+ some(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): boolean;
785
785
  forEach(callbackfn: (value: string, index: number, array: string[]) => void , thisArg?: any): void;
786
786
  map(callbackfn: (value: string, index: number, array: string[]) => any, thisArg?: any): any[];
787
- filter(callbackfn: (value: string, index: number, array: string[]) => bool, thisArg?: any): string[];
787
+ filter(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): string[];
788
788
  reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: string[]) => any, initialValue?: any): any;
789
789
  reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: string[]) => any, initialValue?: any): any;
790
790
  }
@@ -800,15 +800,15 @@ interface RegExp {
800
800
  * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
801
801
  * @param string String on which to perform the search.
802
802
  */
803
- test(string: string): bool;
803
+ test(string: string): boolean;
804
804
  /** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
805
805
  source: string;
806
806
  /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
807
- global: bool;
807
+ global: boolean;
808
808
  /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
809
- ignoreCase: bool;
809
+ ignoreCase: boolean;
810
810
  /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
811
- multiline: bool;
811
+ multiline: boolean;
812
812
 
813
813
  lastIndex: number;
814
814
 
@@ -939,41 +939,47 @@ declare var JSON: JSON;
939
939
  /// ECMAScript Array API (specially handled by compiler)
940
940
  ////////////////
941
941
 
942
- interface Array {
942
+ interface Array<T> {
943
943
  toString(): string;
944
944
  toLocaleString(): string;
945
- concat(...items: _element[][]): _element[];
946
- concat(...items: _element[]): _element[];
947
- join(seperator?: string): string;
948
- pop(): _element;
949
- push(...items: _element[]): number;
950
- reverse(): _element[];
951
- shift(): _element;
952
- slice(start: number, end?: number): _element[];
953
- sort(compareFn?: (a: _element, b: _element) => number): _element[];
954
- splice(start: number): _element[];
955
- splice(start: number, deleteCount: number, ...items: _element[]): _element[];
956
- unshift(...items: _element[]): number;
957
-
958
- indexOf(searchElement: _element, fromIndex?: number): number;
959
- lastIndexOf(searchElement: _element, fromIndex?: number): number;
960
- every(callbackfn: (value: _element, index: number, array: _element[]) => bool, thisArg?: any): bool;
961
- some(callbackfn: (value: _element, index: number, array: _element[]) => bool, thisArg?: any): bool;
962
- forEach(callbackfn: (value: _element, index: number, array: _element[]) => void , thisArg?: any): void;
963
- map(callbackfn: (value: _element, index: number, array: _element[]) => any, thisArg?: any): any[];
964
- filter(callbackfn: (value: _element, index: number, array: _element[]) => bool, thisArg?: any): _element[];
965
- reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: _element[]) => any, initialValue?: any): any;
966
- reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: _element[]) => any, initialValue?: any): any;
945
+ concat<U extends T[]>(...items: U[]): T[];
946
+ concat(...items: T[]): T[];
947
+ join(separator?: string): string;
948
+ pop(): T;
949
+ push(...items: T[]): number;
950
+ reverse(): T[];
951
+ shift(): T;
952
+ slice(start: number, end?: number): T[];
953
+ sort(compareFn?: (a: T, b: T) => number): T[];
954
+ splice(start: number): T[];
955
+ splice(start: number, deleteCount: number, ...items: T[]): T[];
956
+ unshift(...items: T[]): number;
957
+
958
+ indexOf(searchElement: T, fromIndex?: number): number;
959
+ lastIndexOf(searchElement: T, fromIndex?: number): number;
960
+ every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
961
+ some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
962
+ forEach(callbackfn: (value: T, index: number, array: T[]) => void , thisArg?: any): void;
963
+ map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
964
+ filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
965
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
966
+ reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
967
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
968
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
967
969
 
968
970
  length: number;
971
+
969
972
  }
970
973
  declare var Array: {
971
- new (...items: any[]): any[];
972
- (...items: any[]): any[];
973
- isArray(arg: any): bool;
974
- prototype: Array;
974
+ new <T>(arrayLength: number): T[];
975
+ new <T>(...items: T[]): T[];
976
+ <T>(arrayLength: number): T[];
977
+ <T>(...items: T[]): T[];
978
+ isArray(arg: any): boolean;
979
+ prototype: Array<any>;
975
980
  }
976
981
 
982
+
977
983
  ////////////////
978
984
  /// IE10 ECMAScript Extensions
979
985
  ////////////////
@@ -1147,21 +1153,21 @@ declare var Float64Array: {
1147
1153
  interface DataView extends ArrayBufferView {
1148
1154
  getInt8(byteOffset: number): number;
1149
1155
  getUint8(byteOffset: number): number;
1150
- getInt16(byteOffset: number, littleEndian?: bool): number;
1151
- getUint16(byteOffset: number, littleEndian?: bool): number;
1152
- getInt32(byteOffset: number, littleEndian?: bool): number;
1153
- getUint32(byteOffset: number, littleEndian?: bool): number;
1154
- getFloat32(byteOffset: number, littleEndian?: bool): number;
1155
- getFloat64(byteOffset: number, littleEndian?: bool): number;
1156
+ getInt16(byteOffset: number, littleEndian?: boolean): number;
1157
+ getUint16(byteOffset: number, littleEndian?: boolean): number;
1158
+ getInt32(byteOffset: number, littleEndian?: boolean): number;
1159
+ getUint32(byteOffset: number, littleEndian?: boolean): number;
1160
+ getFloat32(byteOffset: number, littleEndian?: boolean): number;
1161
+ getFloat64(byteOffset: number, littleEndian?: boolean): number;
1156
1162
 
1157
1163
  setInt8(byteOffset: number, value: number): void;
1158
1164
  setUint8(byteOffset: number, value: number): void;
1159
- setInt16(byteOffset: number, value: number, littleEndian?: bool): void;
1160
- setUint16(byteOffset: number, value: number, littleEndian?: bool): void;
1161
- setInt32(byteOffset: number, value: number, littleEndian?: bool): void;
1162
- setUint32(byteOffset: number, value: number, littleEndian?: bool): void;
1163
- setFloat32(byteOffset: number, value: number, littleEndian?: bool): void;
1164
- setFloat64(byteOffset: number, value: number, littleEndian?: bool): void;
1165
+ setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
1166
+ setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
1167
+ setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
1168
+ setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
1169
+ setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
1170
+ setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
1165
1171
  }
1166
1172
  declare var DataView: {
1167
1173
  prototype: DataView;
@@ -1211,7 +1217,7 @@ interface TreeWalker {
1211
1217
  filter: NodeFilterCallback;
1212
1218
  root: Node;
1213
1219
  currentNode: Node;
1214
- expandEntityReferences: bool;
1220
+ expandEntityReferences: boolean;
1215
1221
  previousSibling(): Node;
1216
1222
  lastChild(): Node;
1217
1223
  nextSibling(): Node;
@@ -1256,11 +1262,18 @@ declare var Performance: {
1256
1262
 
1257
1263
  interface SVGSVGElementEventHandlers {
1258
1264
  onresize: (ev: UIEvent) => any;
1265
+ addEventListener(type: "resize", listener: (ev: UIEvent) => void, useCapture?: boolean): void;
1259
1266
  onunload: (ev: Event) => any;
1267
+ addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
1260
1268
  onscroll: (ev: UIEvent) => any;
1269
+ addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
1261
1270
  onerror: (ev: Event) => any;
1271
+ addEventListener(type: "error", listener: (ev: Event) => any, useCapture?: boolean): void;
1262
1272
  onzoom: (ev: any) => any;
1273
+ addEventListener(type: "zoom", listener: (ev: any) => any, useCapture?: boolean): void;
1263
1274
  onabort: (ev: UIEvent) => any;
1275
+ addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
1276
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1264
1277
  }
1265
1278
 
1266
1279
  interface MSDataBindingTableExtensions {
@@ -1279,7 +1292,7 @@ interface DOML2DeprecatedAlignmentStyle_HTMLParagraphElement {
1279
1292
  interface CompositionEvent extends UIEvent {
1280
1293
  data: string;
1281
1294
  locale: string;
1282
- initCompositionEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, dataArg: string, locale: string): void;
1295
+ initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, dataArg: string, locale: string): void;
1283
1296
  }
1284
1297
  declare var CompositionEvent: {
1285
1298
  prototype: CompositionEvent;
@@ -1350,18 +1363,18 @@ interface MSStyleCSSProperties extends MSCSSProperties {
1350
1363
  posLeft: number;
1351
1364
  pixelTop: number;
1352
1365
  pixelBottom: number;
1353
- textDecorationNone: bool;
1366
+ textDecorationNone: boolean;
1354
1367
  pixelLeft: number;
1355
1368
  posTop: number;
1356
1369
  posBottom: number;
1357
- textDecorationOverline: bool;
1370
+ textDecorationOverline: boolean;
1358
1371
  posWidth: number;
1359
- textDecorationLineThrough: bool;
1372
+ textDecorationLineThrough: boolean;
1360
1373
  pixelHeight: number;
1361
- textDecorationBlink: bool;
1374
+ textDecorationBlink: boolean;
1362
1375
  posRight: number;
1363
1376
  pixelRight: number;
1364
- textDecorationUnderline: bool;
1377
+ textDecorationUnderline: boolean;
1365
1378
  }
1366
1379
  declare var MSStyleCSSProperties: {
1367
1380
  prototype: MSStyleCSSProperties;
@@ -1371,10 +1384,10 @@ declare var MSStyleCSSProperties: {
1371
1384
  interface MSCSSStyleSheetExtensions {
1372
1385
  owningElement: Element;
1373
1386
  imports: StyleSheetList;
1374
- isAlternate: bool;
1387
+ isAlternate: boolean;
1375
1388
  rules: MSCSSRuleList;
1376
- isPrefAlternate: bool;
1377
- readOnly: bool;
1389
+ isPrefAlternate: boolean;
1390
+ readOnly: boolean;
1378
1391
  cssText: string;
1379
1392
  href: string;
1380
1393
  id: string;
@@ -1464,7 +1477,7 @@ interface PositionErrorCallback {
1464
1477
  interface DOMImplementation extends DOMHTMLImplementation {
1465
1478
  createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
1466
1479
  createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document;
1467
- hasFeature(feature: string, version?: string): bool;
1480
+ hasFeature(feature: string, version?: string): boolean;
1468
1481
  }
1469
1482
  declare var DOMImplementation: {
1470
1483
  prototype: DOMImplementation;
@@ -1494,46 +1507,74 @@ interface DocumentRange {
1494
1507
 
1495
1508
  interface MSHTMLDocumentExtensions {
1496
1509
  onrowexit: (ev: MSEventObj) => any;
1510
+ addEventListener(type: "rowexit", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1497
1511
  compatible: MSCompatibleInfoCollection;
1498
1512
  oncontrolselect: (ev: MSEventObj) => any;
1513
+ addEventListener(type: "controlselect", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1499
1514
  onrowsinserted: (ev: MSEventObj) => any;
1515
+ addEventListener(type: "rowsinserted", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1500
1516
  onpropertychange: (ev: MSEventObj) => any;
1517
+ addEventListener(type: "propertychange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1501
1518
  media: string;
1502
1519
  onafterupdate: (ev: MSEventObj) => any;
1520
+ addEventListener(type: "afterupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1503
1521
  onhelp: (ev: Event) => any;
1522
+ addEventListener(type: "help", listener: (ev: Event) => any, useCapture?: boolean): void;
1504
1523
  uniqueID: string;
1505
1524
  onbeforeactivate: (ev: UIEvent) => any;
1525
+ addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
1506
1526
  onstoragecommit: (ev: StorageEvent) => any;
1527
+ addEventListener(type: "storagecommit", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
1507
1528
  onselectionchange: (ev: Event) => any;
1529
+ addEventListener(type: "selectionchange", listener: (ev: Event) => any, useCapture?: boolean): void;
1508
1530
  documentMode: number;
1509
1531
  onfocusout: (ev: FocusEvent) => any;
1532
+ addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
1510
1533
  ondataavailable: (ev: MSEventObj) => any;
1534
+ addEventListener(type: "dataavailable", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1511
1535
  onbeforeupdate: (ev: MSEventObj) => any;
1536
+ addEventListener(type: "beforeupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1512
1537
  onfocusin: (ev: FocusEvent) => any;
1538
+ addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
1513
1539
  security: string;
1514
1540
  namespaces: MSNamespaceInfoCollection;
1515
1541
  ondatasetcomplete: (ev: MSEventObj) => any;
1542
+ addEventListener(type: "datasetcomplete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1516
1543
  onbeforedeactivate: (ev: UIEvent) => any;
1544
+ addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
1517
1545
  onstop: (ev: Event) => any;
1546
+ addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void;
1518
1547
  onactivate: (ev: UIEvent) => any;
1548
+ addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
1519
1549
  onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any;
1550
+ addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
1520
1551
  frames: Window;
1521
1552
  onselectstart: (ev: Event) => any;
1553
+ addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
1522
1554
  onerrorupdate: (ev: MSEventObj) => any;
1555
+ addEventListener(type: "errorupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1523
1556
  parentWindow: Window;
1524
1557
  ondeactivate: (ev: UIEvent) => any;
1558
+ addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
1525
1559
  ondatasetchanged: (ev: MSEventObj) => any;
1560
+ addEventListener(type: "datasetchanged", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1526
1561
  onrowsdelete: (ev: MSEventObj) => any;
1562
+ addEventListener(type: "rowsdelete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1527
1563
  onmsthumbnailclick: (ev: MSSiteModeEvent) => any;
1564
+ addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void;
1528
1565
  onrowenter: (ev: MSEventObj) => any;
1566
+ addEventListener(type: "rowenter", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1529
1567
  onbeforeeditfocus: (ev: MSEventObj) => any;
1568
+ addEventListener(type: "beforeeditfocus", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1530
1569
  Script: MSScriptHost;
1531
1570
  oncellchange: (ev: MSEventObj) => any;
1571
+ addEventListener(type: "cellchange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
1532
1572
  URLUnencoded: string;
1533
1573
  updateSettings(): void;
1534
- execCommandShowHelp(commandId: string): bool;
1574
+ execCommandShowHelp(commandId: string): boolean;
1535
1575
  releaseCapture(): void;
1536
1576
  focus(): void;
1577
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
1537
1578
  }
1538
1579
 
1539
1580
  interface CSS2Properties {
@@ -1666,16 +1707,119 @@ interface Element extends Node, NodeSelector, ElementTraversal, MSElementExtensi
1666
1707
  scrollHeight: number;
1667
1708
  getAttribute(name?: string): string;
1668
1709
  getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList;
1669
- hasAttributeNS(namespaceURI: string, localName: string): bool;
1710
+ hasAttributeNS(namespaceURI: string, localName: string): boolean;
1670
1711
  getBoundingClientRect(): ClientRect;
1671
1712
  getAttributeNS(namespaceURI: string, localName: string): string;
1672
1713
  getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
1673
1714
  setAttributeNodeNS(newAttr: Attr): Attr;
1674
- hasAttribute(name: string): bool;
1715
+ hasAttribute(name: string): boolean;
1675
1716
  removeAttribute(name?: string): void;
1676
1717
  setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
1677
1718
  getAttributeNode(name: string): Attr;
1678
1719
  getElementsByTagName(name: string): NodeList;
1720
+ getElementsByTagName(name: "a"): NodeListOf<HTMLAnchorElement>;
1721
+ getElementsByTagName(name: "abbr"): NodeListOf<HTMLElement>;
1722
+ getElementsByTagName(name: "address"): NodeListOf<HTMLElement>;
1723
+ getElementsByTagName(name: "area"): NodeListOf<HTMLAreaElement>;
1724
+ getElementsByTagName(name: "article"): NodeListOf<HTMLElement>;
1725
+ getElementsByTagName(name: "aside"): NodeListOf<HTMLElement>;
1726
+ getElementsByTagName(name: "audio"): NodeListOf<HTMLAudioElement>;
1727
+ getElementsByTagName(name: "b"): NodeListOf<HTMLElement>;
1728
+ getElementsByTagName(name: "base"): NodeListOf<HTMLBaseElement>;
1729
+ getElementsByTagName(name: "bdi"): NodeListOf<HTMLElement>;
1730
+ getElementsByTagName(name: "bdo"): NodeListOf<HTMLElement>;
1731
+ getElementsByTagName(name: "blockquote"): NodeListOf<HTMLQuoteElement>;
1732
+ getElementsByTagName(name: "body"): NodeListOf<HTMLBodyElement>;
1733
+ getElementsByTagName(name: "br"): NodeListOf<HTMLBRElement>;
1734
+ getElementsByTagName(name: "button"): NodeListOf<HTMLButtonElement>;
1735
+ getElementsByTagName(name: "canvas"): NodeListOf<HTMLCanvasElement>;
1736
+ getElementsByTagName(name: "caption"): NodeListOf<HTMLTableCaptionElement>;
1737
+ getElementsByTagName(name: "cite"): NodeListOf<HTMLElement>;
1738
+ getElementsByTagName(name: "code"): NodeListOf<HTMLElement>;
1739
+ getElementsByTagName(name: "col"): NodeListOf<HTMLTableColElement>;
1740
+ getElementsByTagName(name: "colgroup"): NodeListOf<HTMLTableColElement>;
1741
+ getElementsByTagName(name: "datalist"): NodeListOf<HTMLDataListElement>;
1742
+ getElementsByTagName(name: "dd"): NodeListOf<HTMLElement>;
1743
+ getElementsByTagName(name: "del"): NodeListOf<HTMLModElement>;
1744
+ getElementsByTagName(name: "dfn"): NodeListOf<HTMLElement>;
1745
+ getElementsByTagName(name: "div"): NodeListOf<HTMLDivElement>;
1746
+ getElementsByTagName(name: "dl"): NodeListOf<HTMLDListElement>;
1747
+ getElementsByTagName(name: "dt"): NodeListOf<HTMLElement>;
1748
+ getElementsByTagName(name: "em"): NodeListOf<HTMLElement>;
1749
+ getElementsByTagName(name: "embed"): NodeListOf<HTMLEmbedElement>;
1750
+ getElementsByTagName(name: "fieldset"): NodeListOf<HTMLFieldSetElement>;
1751
+ getElementsByTagName(name: "figcaption"): NodeListOf<HTMLElement>;
1752
+ getElementsByTagName(name: "figure"): NodeListOf<HTMLElement>;
1753
+ getElementsByTagName(name: "footer"): NodeListOf<HTMLElement>;
1754
+ getElementsByTagName(name: "form"): NodeListOf<HTMLFormElement>;
1755
+ getElementsByTagName(name: "h1"): NodeListOf<HTMLHeadingElement>;
1756
+ getElementsByTagName(name: "h2"): NodeListOf<HTMLHeadingElement>;
1757
+ getElementsByTagName(name: "h3"): NodeListOf<HTMLHeadingElement>;
1758
+ getElementsByTagName(name: "h4"): NodeListOf<HTMLHeadingElement>;
1759
+ getElementsByTagName(name: "h5"): NodeListOf<HTMLHeadingElement>;
1760
+ getElementsByTagName(name: "h6"): NodeListOf<HTMLHeadingElement>;
1761
+ getElementsByTagName(name: "head"): NodeListOf<HTMLHeadElement>;
1762
+ getElementsByTagName(name: "header"): NodeListOf<HTMLElement>;
1763
+ getElementsByTagName(name: "hgroup"): NodeListOf<HTMLElement>;
1764
+ getElementsByTagName(name: "hr"): NodeListOf<HTMLHRElement>;
1765
+ getElementsByTagName(name: "html"): NodeListOf<HTMLHtmlElement>;
1766
+ getElementsByTagName(name: "i"): NodeListOf<HTMLElement>;
1767
+ getElementsByTagName(name: "iframe"): NodeListOf<HTMLIFrameElement>;
1768
+ getElementsByTagName(name: "img"): NodeListOf<HTMLImageElement>;
1769
+ getElementsByTagName(name: "input"): NodeListOf<HTMLInputElement>;
1770
+ getElementsByTagName(name: "ins"): NodeListOf<HTMLModElement>;
1771
+ getElementsByTagName(name: "kbd"): NodeListOf<HTMLElement>;
1772
+ getElementsByTagName(name: "label"): NodeListOf<HTMLLabelElement>;
1773
+ getElementsByTagName(name: "legend"): NodeListOf<HTMLLegendElement>;
1774
+ getElementsByTagName(name: "li"): NodeListOf<HTMLLIElement>;
1775
+ getElementsByTagName(name: "link"): NodeListOf<HTMLLinkElement>;
1776
+ getElementsByTagName(name: "main"): NodeListOf<HTMLElement>;
1777
+ getElementsByTagName(name: "map"): NodeListOf<HTMLMapElement>;
1778
+ getElementsByTagName(name: "mark"): NodeListOf<HTMLElement>;
1779
+ getElementsByTagName(name: "menu"): NodeListOf<HTMLMenuElement>;
1780
+ getElementsByTagName(name: "meta"): NodeListOf<HTMLMetaElement>;
1781
+ getElementsByTagName(name: "nav"): NodeListOf<HTMLElement>;
1782
+ getElementsByTagName(name: "noscript"): NodeListOf<HTMLElement>;
1783
+ getElementsByTagName(name: "object"): NodeListOf<HTMLObjectElement>;
1784
+ getElementsByTagName(name: "ol"): NodeListOf<HTMLOListElement>;
1785
+ getElementsByTagName(name: "optgroup"): NodeListOf<HTMLOptGroupElement>;
1786
+ getElementsByTagName(name: "option"): NodeListOf<HTMLOptionElement>;
1787
+ getElementsByTagName(name: "p"): NodeListOf<HTMLParagraphElement>;
1788
+ getElementsByTagName(name: "param"): NodeListOf<HTMLParamElement>;
1789
+ getElementsByTagName(name: "pre"): NodeListOf<HTMLPreElement>;
1790
+ getElementsByTagName(name: "progress"): NodeListOf<HTMLProgressElement>;
1791
+ getElementsByTagName(name: "q"): NodeListOf<HTMLQuoteElement>;
1792
+ getElementsByTagName(name: "rp"): NodeListOf<HTMLElement>;
1793
+ getElementsByTagName(name: "rt"): NodeListOf<HTMLElement>;
1794
+ getElementsByTagName(name: "ruby"): NodeListOf<HTMLElement>;
1795
+ getElementsByTagName(name: "s"): NodeListOf<HTMLElement>;
1796
+ getElementsByTagName(name: "samp"): NodeListOf<HTMLElement>;
1797
+ getElementsByTagName(name: "script"): NodeListOf<HTMLScriptElement>;
1798
+ getElementsByTagName(name: "section"): NodeListOf<HTMLElement>;
1799
+ getElementsByTagName(name: "select"): NodeListOf<HTMLSelectElement>;
1800
+ getElementsByTagName(name: "small"): NodeListOf<HTMLElement>;
1801
+ getElementsByTagName(name: "source"): NodeListOf<HTMLSourceElement>;
1802
+ getElementsByTagName(name: "span"): NodeListOf<HTMLSpanElement>;
1803
+ getElementsByTagName(name: "strong"): NodeListOf<HTMLElement>;
1804
+ getElementsByTagName(name: "style"): NodeListOf<HTMLStyleElement>;
1805
+ getElementsByTagName(name: "sub"): NodeListOf<HTMLElement>;
1806
+ getElementsByTagName(name: "summary"): NodeListOf<HTMLElement>;
1807
+ getElementsByTagName(name: "sup"): NodeListOf<HTMLElement>;
1808
+ getElementsByTagName(name: "table"): NodeListOf<HTMLTableElement>;
1809
+ getElementsByTagName(name: "tbody"): NodeListOf<HTMLTableSectionElement>;
1810
+ getElementsByTagName(name: "td"): NodeListOf<HTMLTableDataCellElement>;
1811
+ getElementsByTagName(name: "textarea"): NodeListOf<HTMLTextAreaElement>;
1812
+ getElementsByTagName(name: "tfoot"): NodeListOf<HTMLTableSectionElement>;
1813
+ getElementsByTagName(name: "th"): NodeListOf<HTMLTableHeaderCellElement>;
1814
+ getElementsByTagName(name: "thead"): NodeListOf<HTMLTableSectionElement>;
1815
+ getElementsByTagName(name: "title"): NodeListOf<HTMLTitleElement>;
1816
+ getElementsByTagName(name: "tr"): NodeListOf<HTMLTableRowElement>;
1817
+ getElementsByTagName(name: "track"): NodeListOf<HTMLTrackElement>;
1818
+ getElementsByTagName(name: "u"): NodeListOf<HTMLElement>;
1819
+ getElementsByTagName(name: "ul"): NodeListOf<HTMLUListElement>;
1820
+ getElementsByTagName(name: "var"): NodeListOf<HTMLElement>;
1821
+ getElementsByTagName(name: "video"): NodeListOf<HTMLVideoElement>;
1822
+ getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>;
1679
1823
  setAttributeNode(newAttr: Attr): Attr;
1680
1824
  getClientRects(): ClientRectList;
1681
1825
  removeAttributeNode(oldAttr: Attr): Attr;
@@ -1769,17 +1913,17 @@ interface Node extends EventTarget {
1769
1913
  prefix: string;
1770
1914
  removeChild(oldChild: Node): Node;
1771
1915
  appendChild(newChild: Node): Node;
1772
- isSupported(feature: string, version: string): bool;
1773
- isEqualNode(arg: Node): bool;
1916
+ isSupported(feature: string, version: string): boolean;
1917
+ isEqualNode(arg: Node): boolean;
1774
1918
  lookupPrefix(namespaceURI: string): string;
1775
- isDefaultNamespace(namespaceURI: string): bool;
1919
+ isDefaultNamespace(namespaceURI: string): boolean;
1776
1920
  compareDocumentPosition(other: Node): number;
1777
1921
  normalize(): void;
1778
- isSameNode(other: Node): bool;
1779
- hasAttributes(): bool;
1922
+ isSameNode(other: Node): boolean;
1923
+ hasAttributes(): boolean;
1780
1924
  lookupNamespaceURI(prefix: string): string;
1781
- cloneNode(deep?: bool): Node;
1782
- hasChildNodes(): bool;
1925
+ cloneNode(deep?: boolean): Node;
1926
+ hasChildNodes(): boolean;
1783
1927
  replaceChild(newChild: Node, oldChild: Node): Node;
1784
1928
  insertBefore(newChild: Node, refChild?: Node): Node;
1785
1929
  ENTITY_REFERENCE_NODE: number;
@@ -1830,7 +1974,7 @@ interface MSHTMLLegendElementExtensions {
1830
1974
  interface MSCSSStyleDeclarationExtensions {
1831
1975
  getAttribute(attributeName: string, flags?: number): any;
1832
1976
  setAttribute(attributeName: string, AttributeValue: any, flags?: number): void;
1833
- removeAttribute(attributeName: string, flags?: number): bool;
1977
+ removeAttribute(attributeName: string, flags?: number): boolean;
1834
1978
  }
1835
1979
 
1836
1980
  interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
@@ -1862,7 +2006,7 @@ interface MSHTMLObjectElementExtensions {
1862
2006
  }
1863
2007
 
1864
2008
  interface DOML2DeprecatedListSpaceReduction {
1865
- compact: bool;
2009
+ compact: boolean;
1866
2010
  }
1867
2011
 
1868
2012
  interface CSS3Properties {
@@ -1912,21 +2056,21 @@ interface MouseEvent extends UIEvent, MSMouseEventExtensions {
1912
2056
  offsetY: number;
1913
2057
  x: number;
1914
2058
  y: number;
1915
- altKey: bool;
1916
- metaKey: bool;
1917
- ctrlKey: bool;
2059
+ altKey: boolean;
2060
+ metaKey: boolean;
2061
+ ctrlKey: boolean;
1918
2062
  offsetX: number;
1919
2063
  screenX: number;
1920
2064
  clientY: number;
1921
- shiftKey: bool;
2065
+ shiftKey: boolean;
1922
2066
  screenY: number;
1923
2067
  relatedTarget: EventTarget;
1924
2068
  button: number;
1925
2069
  pageY: number;
1926
2070
  buttons: number;
1927
2071
  clientX: number;
1928
- initMouseEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: bool, altKeyArg: bool, shiftKeyArg: bool, metaKeyArg: bool, buttonArg: number, relatedTargetArg: EventTarget): void;
1929
- getModifierState(keyArg: string): bool;
2072
+ initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget): void;
2073
+ getModifierState(keyArg: string): boolean;
1930
2074
  }
1931
2075
  declare var MouseEvent: {
1932
2076
  prototype: MouseEvent;
@@ -2000,7 +2144,7 @@ declare var TextMetrics: {
2000
2144
  }
2001
2145
 
2002
2146
  interface DOML2DeprecatedWordWrapSuppression_HTMLBodyElement {
2003
- noWrap: bool;
2147
+ noWrap: boolean;
2004
2148
  }
2005
2149
 
2006
2150
  interface HTMLOListElement extends HTMLElement, DOML2DeprecatedListNumberingAndBulletStyle, DOML2DeprecatedListSpaceReduction, MSHTMLOListElementExtensions {
@@ -2041,7 +2185,7 @@ declare var CDATASection: {
2041
2185
 
2042
2186
  interface StyleMedia {
2043
2187
  type: string;
2044
- matchMedium(mediaquery: string): bool;
2188
+ matchMedium(mediaquery: string): boolean;
2045
2189
  }
2046
2190
  declare var StyleMedia: {
2047
2191
  prototype: StyleMedia;
@@ -2061,31 +2205,31 @@ interface TextRange {
2061
2205
  queryCommandValue(cmdID: string): any;
2062
2206
  getBookmark(): string;
2063
2207
  move(Unit: string, Count?: number): number;
2064
- queryCommandIndeterm(cmdID: string): bool;
2065
- scrollIntoView(fStart?: bool): void;
2066
- findText(string: string, count?: number, flags?: number): bool;
2067
- execCommand(cmdID: string, showUI?: bool, value?: any): bool;
2208
+ queryCommandIndeterm(cmdID: string): boolean;
2209
+ scrollIntoView(fStart?: boolean): void;
2210
+ findText(string: string, count?: number, flags?: number): boolean;
2211
+ execCommand(cmdID: string, showUI?: boolean, value?: any): boolean;
2068
2212
  getBoundingClientRect(): ClientRect;
2069
- moveToBookmark(Bookmark: string): bool;
2070
- isEqual(range: TextRange): bool;
2213
+ moveToBookmark(Bookmark: string): boolean;
2214
+ isEqual(range: TextRange): boolean;
2071
2215
  duplicate(): TextRange;
2072
- collapse(Start?: bool): void;
2216
+ collapse(Start?: boolean): void;
2073
2217
  queryCommandText(cmdID: string): string;
2074
2218
  select(): void;
2075
2219
  pasteHTML(html: string): void;
2076
- inRange(range: TextRange): bool;
2220
+ inRange(range: TextRange): boolean;
2077
2221
  moveEnd(Unit: string, Count?: number): number;
2078
2222
  getClientRects(): ClientRectList;
2079
2223
  moveStart(Unit: string, Count?: number): number;
2080
2224
  parentElement(): Element;
2081
- queryCommandState(cmdID: string): bool;
2225
+ queryCommandState(cmdID: string): boolean;
2082
2226
  compareEndPoints(how: string, sourceRange: TextRange): number;
2083
- execCommandShowHelp(cmdID: string): bool;
2227
+ execCommandShowHelp(cmdID: string): boolean;
2084
2228
  moveToElementText(element: Element): void;
2085
- expand(Unit: string): bool;
2086
- queryCommandSupported(cmdID: string): bool;
2229
+ expand(Unit: string): boolean;
2230
+ queryCommandSupported(cmdID: string): boolean;
2087
2231
  setEndPoint(how: string, SourceRange: TextRange): void;
2088
- queryCommandEnabled(cmdID: string): bool;
2232
+ queryCommandEnabled(cmdID: string): boolean;
2089
2233
  }
2090
2234
  declare var TextRange: {
2091
2235
  prototype: TextRange;
@@ -2100,7 +2244,7 @@ interface HTMLSelectElement extends HTMLElement, MSHTMLCollectionExtensions, MSD
2100
2244
  size: number;
2101
2245
  length: number;
2102
2246
  selectedIndex: number;
2103
- multiple: bool;
2247
+ multiple: boolean;
2104
2248
  type: string;
2105
2249
  remove(index?: number): void;
2106
2250
  add(element: HTMLElement, before?: any): void;
@@ -2138,7 +2282,7 @@ interface SVGTests {
2138
2282
  requiredFeatures: SVGStringList;
2139
2283
  requiredExtensions: SVGStringList;
2140
2284
  systemLanguage: SVGStringList;
2141
- hasExtension(extension: string): bool;
2285
+ hasExtension(extension: string): boolean;
2142
2286
  }
2143
2287
 
2144
2288
  interface MSSelection {
@@ -2169,7 +2313,7 @@ declare var HTMLMetaElement: {
2169
2313
  }
2170
2314
 
2171
2315
  interface Selection {
2172
- isCollapsed: bool;
2316
+ isCollapsed: boolean;
2173
2317
  anchorNode: Node;
2174
2318
  focusNode: Node;
2175
2319
  anchorOffset: number;
@@ -2233,7 +2377,7 @@ interface NodeIterator {
2233
2377
  whatToShow: number;
2234
2378
  filter: NodeFilterCallback;
2235
2379
  root: Node;
2236
- expandEntityReferences: bool;
2380
+ expandEntityReferences: boolean;
2237
2381
  nextNode(): Node;
2238
2382
  detach(): void;
2239
2383
  previousNode(): Node;
@@ -2289,7 +2433,7 @@ interface MSHTMLAppletElementExtensions extends DOML2DeprecatedBorderStyle_HTMLO
2289
2433
  data: string;
2290
2434
  contentDocument: Document;
2291
2435
  altHtml: string;
2292
- declare: bool;
2436
+ declare: boolean;
2293
2437
  type: string;
2294
2438
  BaseHref: string;
2295
2439
  }
@@ -2330,15 +2474,15 @@ interface ControlRangeCollection {
2330
2474
  queryCommandValue(cmdID: string): any;
2331
2475
  remove(index: number): void;
2332
2476
  add(item: Element): void;
2333
- queryCommandIndeterm(cmdID: string): bool;
2477
+ queryCommandIndeterm(cmdID: string): boolean;
2334
2478
  scrollIntoView(varargStart?: any): void;
2335
2479
  item(index: number): Element;
2336
2480
  [index: number]: Element;
2337
- execCommand(cmdID: string, showUI?: bool, value?: any): bool;
2481
+ execCommand(cmdID: string, showUI?: boolean, value?: any): boolean;
2338
2482
  addElement(item: Element): void;
2339
- queryCommandState(cmdID: string): bool;
2340
- queryCommandSupported(cmdID: string): bool;
2341
- queryCommandEnabled(cmdID: string): bool;
2483
+ queryCommandState(cmdID: string): boolean;
2484
+ queryCommandSupported(cmdID: string): boolean;
2485
+ queryCommandEnabled(cmdID: string): boolean;
2342
2486
  queryCommandText(cmdID: string): string;
2343
2487
  select(): void;
2344
2488
  }
@@ -2355,18 +2499,22 @@ interface MSHTMLFrameElementExtensions {
2355
2499
  width: any;
2356
2500
  contentWindow: Window;
2357
2501
  onload: (ev: Event) => any;
2502
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
2358
2503
  frameBorder: string;
2359
2504
  height: any;
2360
2505
  border: string;
2361
2506
  frameSpacing: any;
2507
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
2362
2508
  }
2363
2509
 
2364
2510
  interface MSNamespaceInfo extends MSEventAttachmentTarget {
2365
2511
  urn: string;
2366
2512
  onreadystatechange: (ev: Event) => any;
2513
+ addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
2367
2514
  name: string;
2368
2515
  readyState: string;
2369
2516
  doImport(implementationUrl: string): void;
2517
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
2370
2518
  }
2371
2519
  declare var MSNamespaceInfo: {
2372
2520
  prototype: MSNamespaceInfo;
@@ -2395,12 +2543,12 @@ declare var HTMLTableCaptionElement: {
2395
2543
 
2396
2544
  interface HTMLOptionElement extends HTMLElement, MSDataBindingExtensions {
2397
2545
  index: number;
2398
- defaultSelected: bool;
2546
+ defaultSelected: boolean;
2399
2547
  value: string;
2400
2548
  text: string;
2401
2549
  form: HTMLFormElement;
2402
2550
  label: string;
2403
- selected: bool;
2551
+ selected: boolean;
2404
2552
  }
2405
2553
  declare var HTMLOptionElement: {
2406
2554
  prototype: HTMLOptionElement;
@@ -2426,7 +2574,7 @@ declare var HTMLMenuElement: {
2426
2574
 
2427
2575
  interface MouseWheelEvent extends MouseEvent {
2428
2576
  wheelDelta: number;
2429
- initMouseWheelEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, wheelDeltaArg: number): void;
2577
+ initMouseWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, wheelDeltaArg: number): void;
2430
2578
  }
2431
2579
  declare var MouseWheelEvent: {
2432
2580
  prototype: MouseWheelEvent;
@@ -2480,90 +2628,151 @@ interface MSHTMLTableDataCellElementExtensions {
2480
2628
 
2481
2629
  interface Window extends ViewCSS, MSEventAttachmentTarget, MSWindowExtensions, WindowPerformance, ScreenView, EventTarget, WindowLocalStorage, WindowSessionStorage, WindowTimers {
2482
2630
  ondragend: (ev: DragEvent) => any;
2631
+ addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
2483
2632
  onkeydown: (ev: KeyboardEvent) => any;
2633
+ addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
2484
2634
  ondragover: (ev: DragEvent) => any;
2635
+ addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
2485
2636
  onkeyup: (ev: KeyboardEvent) => any;
2637
+ addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
2486
2638
  onreset: (ev: Event) => any;
2639
+ addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
2487
2640
  onmouseup: (ev: MouseEvent) => any;
2641
+ addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2488
2642
  ondragstart: (ev: DragEvent) => any;
2643
+ addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
2489
2644
  ondrag: (ev: DragEvent) => any;
2645
+ addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
2490
2646
  onmouseover: (ev: MouseEvent) => any;
2647
+ addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2491
2648
  ondragleave: (ev: DragEvent) => any;
2649
+ addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
2492
2650
  history: History;
2493
2651
  name: string;
2494
2652
  onafterprint: (ev: Event) => any;
2653
+ addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
2495
2654
  onpause: (ev: Event) => any;
2655
+ addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
2496
2656
  onbeforeprint: (ev: Event) => any;
2657
+ addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
2497
2658
  top: Window;
2498
2659
  onmousedown: (ev: MouseEvent) => any;
2660
+ addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2499
2661
  onseeked: (ev: Event) => any;
2662
+ addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
2500
2663
  opener: Window;
2501
2664
  onclick: (ev: MouseEvent) => any;
2665
+ addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2502
2666
  onwaiting: (ev: Event) => any;
2667
+ addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
2503
2668
  ononline: (ev: Event) => any;
2669
+ addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
2504
2670
  ondurationchange: (ev: Event) => any;
2671
+ addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
2505
2672
  frames: Window;
2506
2673
  onblur: (ev: FocusEvent) => any;
2674
+ addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
2507
2675
  onemptied: (ev: Event) => any;
2676
+ addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
2508
2677
  onseeking: (ev: Event) => any;
2678
+ addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
2509
2679
  oncanplay: (ev: Event) => any;
2680
+ addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
2510
2681
  onstalled: (ev: Event) => any;
2682
+ addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
2511
2683
  onmousemove: (ev: MouseEvent) => any;
2684
+ addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2512
2685
  onoffline: (ev: Event) => any;
2686
+ addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
2513
2687
  length: number;
2514
2688
  onbeforeunload: (ev: BeforeUnloadEvent) => any;
2689
+ addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
2515
2690
  onratechange: (ev: Event) => any;
2691
+ addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
2516
2692
  onstorage: (ev: StorageEvent) => any;
2693
+ addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
2517
2694
  onloadstart: (ev: Event) => any;
2695
+ addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
2518
2696
  ondragenter: (ev: DragEvent) => any;
2697
+ addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
2519
2698
  onsubmit: (ev: Event) => any;
2699
+ addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
2520
2700
  self: Window;
2521
2701
  onprogress: (ev: any) => any;
2702
+ addEventListener(type: "progress", listener: (ev: any) => any, useCapture?: boolean): void;
2522
2703
  ondblclick: (ev: MouseEvent) => any;
2704
+ addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2523
2705
  oncontextmenu: (ev: MouseEvent) => any;
2706
+ addEventListener(type: "contextmenu", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2524
2707
  onchange: (ev: Event) => any;
2708
+ addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
2525
2709
  onloadedmetadata: (ev: Event) => any;
2710
+ addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
2526
2711
  onplay: (ev: Event) => any;
2712
+ addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
2527
2713
  onerror: ErrorFunction;
2528
2714
  onplaying: (ev: Event) => any;
2715
+ addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
2529
2716
  parent: Window;
2530
2717
  location: Location;
2531
2718
  oncanplaythrough: (ev: Event) => any;
2719
+ addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
2532
2720
  onabort: (ev: UIEvent) => any;
2721
+ addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
2533
2722
  onreadystatechange: (ev: Event) => any;
2723
+ addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
2534
2724
  onkeypress: (ev: KeyboardEvent) => any;
2725
+ addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
2535
2726
  frameElement: Element;
2536
2727
  onloadeddata: (ev: Event) => any;
2728
+ addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
2537
2729
  onsuspend: (ev: Event) => any;
2730
+ addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
2538
2731
  window: Window;
2539
2732
  onfocus: (ev: FocusEvent) => any;
2733
+ addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
2540
2734
  onmessage: (ev: MessageEvent) => any;
2735
+ addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
2541
2736
  ontimeupdate: (ev: Event) => any;
2737
+ addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
2542
2738
  onresize: (ev: UIEvent) => any;
2739
+ addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
2543
2740
  navigator: Navigator;
2544
2741
  onselect: (ev: UIEvent) => any;
2742
+ addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
2545
2743
  ondrop: (ev: DragEvent) => any;
2744
+ addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
2546
2745
  onmouseout: (ev: MouseEvent) => any;
2746
+ addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
2547
2747
  onended: (ev: Event) => any;
2748
+ addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
2548
2749
  onhashchange: (ev: Event) => any;
2750
+ addEventListener(type: "hashchange", listener: (ev: Event) => any, useCapture?: boolean): void;
2549
2751
  onunload: (ev: Event) => any;
2752
+ addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
2550
2753
  onscroll: (ev: UIEvent) => any;
2754
+ addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
2551
2755
  onmousewheel: (ev: MouseWheelEvent) => any;
2756
+ addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
2552
2757
  onload: (ev: Event) => any;
2758
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
2553
2759
  onvolumechange: (ev: Event) => any;
2760
+ addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
2554
2761
  oninput: (ev: Event) => any;
2762
+ addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
2555
2763
  alert(message?: string): void;
2556
2764
  focus(): void;
2557
2765
  print(): void;
2558
2766
  prompt(message?: string, defaul?: string): string;
2559
2767
  toString(): string;
2560
- open(url?: string, target?: string, features?: string, replace?: bool): Window;
2768
+ open(url?: string, target?: string, features?: string, replace?: boolean): Window;
2561
2769
  close(): void;
2562
- confirm(message?: string): bool;
2770
+ confirm(message?: string): boolean;
2563
2771
  postMessage(message: any, targetOrigin: string, ports?: any): void;
2564
2772
  showModalDialog(url?: string, argument?: any, options?: any): any;
2565
2773
  blur(): void;
2566
2774
  getSelection(): Selection;
2775
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
2567
2776
  }
2568
2777
  declare var Window: {
2569
2778
  prototype: Window;
@@ -2589,7 +2798,7 @@ declare var MSSiteModeEvent: {
2589
2798
  }
2590
2799
 
2591
2800
  interface MSCSSStyleRuleExtensions {
2592
- readOnly: bool;
2801
+ readOnly: boolean;
2593
2802
  }
2594
2803
 
2595
2804
  interface StyleSheetPageList {
@@ -2608,7 +2817,6 @@ interface HTMLCollection extends MSHTMLCollectionExtensions {
2608
2817
  (nameOrIndex: any, optionalIndex: any): Element;
2609
2818
  namedItem(name: string): Element;
2610
2819
  [index: number]: Element;
2611
- [name: string]: Element;
2612
2820
  (name: string): Element;
2613
2821
  }
2614
2822
  declare var HTMLCollection: {
@@ -2663,8 +2871,8 @@ interface HTMLImageElement extends HTMLElement, DOML2DeprecatedMarginStyle, DOML
2663
2871
  name: string;
2664
2872
  height: number;
2665
2873
  longDesc: string;
2666
- isMap: bool;
2667
- complete: bool;
2874
+ isMap: boolean;
2875
+ complete: boolean;
2668
2876
  }
2669
2877
  declare var HTMLImageElement: {
2670
2878
  prototype: HTMLImageElement;
@@ -2683,7 +2891,7 @@ interface HTMLAreaElement extends HTMLElement, MSHTMLAreaElementExtensions {
2683
2891
  hash: string;
2684
2892
  target: string;
2685
2893
  href: string;
2686
- noHref: bool;
2894
+ noHref: boolean;
2687
2895
  shape: string;
2688
2896
  toString(): string;
2689
2897
  }
@@ -2693,9 +2901,9 @@ declare var HTMLAreaElement: {
2693
2901
  }
2694
2902
 
2695
2903
  interface EventTarget {
2696
- removeEventListener(type: string, listener: EventListener, useCapture?: bool): void;
2697
- addEventListener(type: string, listener: EventListener, useCapture?: bool): void;
2698
- dispatchEvent(evt: Event): bool;
2904
+ removeEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
2905
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
2906
+ dispatchEvent(evt: Event): boolean;
2699
2907
  }
2700
2908
 
2701
2909
  interface SVGAngle {
@@ -2755,16 +2963,16 @@ declare var CanvasGradient: {
2755
2963
 
2756
2964
  interface KeyboardEvent extends UIEvent, KeyboardEventExtensions {
2757
2965
  location: number;
2758
- shiftKey: bool;
2966
+ shiftKey: boolean;
2759
2967
  locale: string;
2760
2968
  key: string;
2761
- altKey: bool;
2762
- metaKey: bool;
2969
+ altKey: boolean;
2970
+ metaKey: boolean;
2763
2971
  char: string;
2764
- ctrlKey: bool;
2765
- repeat: bool;
2766
- getModifierState(keyArg: string): bool;
2767
- initKeyboardEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, keyArg: string, locationArg: number, modifiersListArg: string, repeat: bool, locale: string): void;
2972
+ ctrlKey: boolean;
2973
+ repeat: boolean;
2974
+ getModifierState(keyArg: string): boolean;
2975
+ initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
2768
2976
  DOM_KEY_LOCATION_RIGHT: number;
2769
2977
  DOM_KEY_LOCATION_STANDARD: number;
2770
2978
  DOM_KEY_LOCATION_LEFT: number;
@@ -2788,20 +2996,226 @@ interface Document extends Node, DocumentStyle, DocumentRange, HTMLDocument, Nod
2788
2996
  xmlVersion: string;
2789
2997
  implementation: DOMImplementation;
2790
2998
  xmlEncoding: string;
2791
- xmlStandalone: bool;
2999
+ xmlStandalone: boolean;
2792
3000
  documentElement: HTMLElement;
2793
3001
  inputEncoding: string;
2794
3002
  createElement(tagName: string): HTMLElement;
3003
+ createElement(tagName: "a"): HTMLAnchorElement;
3004
+ createElement(tagName: "abbr"): HTMLElement;
3005
+ createElement(tagName: "address"): HTMLElement;
3006
+ createElement(tagName: "area"): HTMLAreaElement;
3007
+ createElement(tagName: "article"): HTMLElement;
3008
+ createElement(tagName: "aside"): HTMLElement;
3009
+ createElement(tagName: "audio"): HTMLAudioElement;
3010
+ createElement(tagName: "b"): HTMLElement;
3011
+ createElement(tagName: "base"): HTMLBaseElement;
3012
+ createElement(tagName: "bdi"): HTMLElement;
3013
+ createElement(tagName: "bdo"): HTMLElement;
3014
+ createElement(tagName: "blockquote"): HTMLQuoteElement;
3015
+ createElement(tagName: "body"): HTMLBodyElement;
3016
+ createElement(tagName: "br"): HTMLBRElement;
3017
+ createElement(tagName: "button"): HTMLButtonElement;
3018
+ createElement(tagName: "canvas"): HTMLCanvasElement;
3019
+ createElement(tagName: "caption"): HTMLTableCaptionElement;
3020
+ createElement(tagName: "cite"): HTMLElement;
3021
+ createElement(tagName: "code"): HTMLElement;
3022
+ createElement(tagName: "col"): HTMLTableColElement;
3023
+ createElement(tagName: "colgroup"): HTMLTableColElement;
3024
+ createElement(tagName: "datalist"): HTMLDataListElement;
3025
+ createElement(tagName: "dd"): HTMLElement;
3026
+ createElement(tagName: "del"): HTMLModElement;
3027
+ createElement(tagName: "dfn"): HTMLElement;
3028
+ createElement(tagName: "div"): HTMLDivElement;
3029
+ createElement(tagName: "dl"): HTMLDListElement;
3030
+ createElement(tagName: "dt"): HTMLElement;
3031
+ createElement(tagName: "em"): HTMLElement;
3032
+ createElement(tagName: "embed"): HTMLEmbedElement;
3033
+ createElement(tagName: "fieldset"): HTMLFieldSetElement;
3034
+ createElement(tagName: "figcaption"): HTMLElement;
3035
+ createElement(tagName: "figure"): HTMLElement;
3036
+ createElement(tagName: "footer"): HTMLElement;
3037
+ createElement(tagName: "form"): HTMLFormElement;
3038
+ createElement(tagName: "h1"): HTMLHeadingElement;
3039
+ createElement(tagName: "h2"): HTMLHeadingElement;
3040
+ createElement(tagName: "h3"): HTMLHeadingElement;
3041
+ createElement(tagName: "h4"): HTMLHeadingElement;
3042
+ createElement(tagName: "h5"): HTMLHeadingElement;
3043
+ createElement(tagName: "h6"): HTMLHeadingElement;
3044
+ createElement(tagName: "head"): HTMLHeadElement;
3045
+ createElement(tagName: "header"): HTMLElement;
3046
+ createElement(tagName: "hgroup"): HTMLElement;
3047
+ createElement(tagName: "hr"): HTMLHRElement;
3048
+ createElement(tagName: "html"): HTMLHtmlElement;
3049
+ createElement(tagName: "i"): HTMLElement;
3050
+ createElement(tagName: "iframe"): HTMLIFrameElement;
3051
+ createElement(tagName: "img"): HTMLImageElement;
3052
+ createElement(tagName: "input"): HTMLInputElement;
3053
+ createElement(tagName: "ins"): HTMLModElement;
3054
+ createElement(tagName: "kbd"): HTMLElement;
3055
+ createElement(tagName: "label"): HTMLLabelElement;
3056
+ createElement(tagName: "legend"): HTMLLegendElement;
3057
+ createElement(tagName: "li"): HTMLLIElement;
3058
+ createElement(tagName: "link"): HTMLLinkElement;
3059
+ createElement(tagName: "main"): HTMLElement;
3060
+ createElement(tagName: "map"): HTMLMapElement;
3061
+ createElement(tagName: "mark"): HTMLElement;
3062
+ createElement(tagName: "menu"): HTMLMenuElement;
3063
+ createElement(tagName: "meta"): HTMLMetaElement;
3064
+ createElement(tagName: "nav"): HTMLElement;
3065
+ createElement(tagName: "noscript"): HTMLElement;
3066
+ createElement(tagName: "object"): HTMLObjectElement;
3067
+ createElement(tagName: "ol"): HTMLOListElement;
3068
+ createElement(tagName: "optgroup"): HTMLOptGroupElement;
3069
+ createElement(tagName: "option"): HTMLOptionElement;
3070
+ createElement(tagName: "p"): HTMLParagraphElement;
3071
+ createElement(tagName: "param"): HTMLParamElement;
3072
+ createElement(tagName: "pre"): HTMLPreElement;
3073
+ createElement(tagName: "progress"): HTMLProgressElement;
3074
+ createElement(tagName: "q"): HTMLQuoteElement;
3075
+ createElement(tagName: "rp"): HTMLElement;
3076
+ createElement(tagName: "rt"): HTMLElement;
3077
+ createElement(tagName: "ruby"): HTMLElement;
3078
+ createElement(tagName: "s"): HTMLElement;
3079
+ createElement(tagName: "samp"): HTMLElement;
3080
+ createElement(tagName: "script"): HTMLScriptElement;
3081
+ createElement(tagName: "section"): HTMLElement;
3082
+ createElement(tagName: "select"): HTMLSelectElement;
3083
+ createElement(tagName: "small"): HTMLElement;
3084
+ createElement(tagName: "source"): HTMLSourceElement;
3085
+ createElement(tagName: "span"): HTMLSpanElement;
3086
+ createElement(tagName: "strong"): HTMLElement;
3087
+ createElement(tagName: "style"): HTMLStyleElement;
3088
+ createElement(tagName: "sub"): HTMLElement;
3089
+ createElement(tagName: "summary"): HTMLElement;
3090
+ createElement(tagName: "sup"): HTMLElement;
3091
+ createElement(tagName: "table"): HTMLTableElement;
3092
+ createElement(tagName: "tbody"): HTMLTableSectionElement;
3093
+ createElement(tagName: "td"): HTMLTableDataCellElement;
3094
+ createElement(tagName: "textarea"): HTMLTextAreaElement;
3095
+ createElement(tagName: "tfoot"): HTMLTableSectionElement;
3096
+ createElement(tagName: "th"): HTMLTableHeaderCellElement;
3097
+ createElement(tagName: "thead"): HTMLTableSectionElement;
3098
+ createElement(tagName: "title"): HTMLTitleElement;
3099
+ createElement(tagName: "tr"): HTMLTableRowElement;
3100
+ createElement(tagName: "track"): HTMLTrackElement;
3101
+ createElement(tagName: "u"): HTMLElement;
3102
+ createElement(tagName: "ul"): HTMLUListElement;
3103
+ createElement(tagName: "var"): HTMLElement;
3104
+ createElement(tagName: "video"): HTMLVideoElement;
3105
+ createElement(tagName: "wbr"): HTMLElement;
2795
3106
  adoptNode(source: Node): Node;
2796
3107
  createComment(data: string): Comment;
2797
3108
  createDocumentFragment(): DocumentFragment;
2798
3109
  getElementsByTagName(tagname: string): NodeList;
3110
+ getElementsByTagName(name: "a"): NodeListOf<HTMLAnchorElement>;
3111
+ getElementsByTagName(name: "abbr"): NodeListOf<HTMLElement>;
3112
+ getElementsByTagName(name: "address"): NodeListOf<HTMLElement>;
3113
+ getElementsByTagName(name: "area"): NodeListOf<HTMLAreaElement>;
3114
+ getElementsByTagName(name: "article"): NodeListOf<HTMLElement>;
3115
+ getElementsByTagName(name: "aside"): NodeListOf<HTMLElement>;
3116
+ getElementsByTagName(name: "audio"): NodeListOf<HTMLAudioElement>;
3117
+ getElementsByTagName(name: "b"): NodeListOf<HTMLElement>;
3118
+ getElementsByTagName(name: "base"): NodeListOf<HTMLBaseElement>;
3119
+ getElementsByTagName(name: "bdi"): NodeListOf<HTMLElement>;
3120
+ getElementsByTagName(name: "bdo"): NodeListOf<HTMLElement>;
3121
+ getElementsByTagName(name: "blockquote"): NodeListOf<HTMLQuoteElement>;
3122
+ getElementsByTagName(name: "body"): NodeListOf<HTMLBodyElement>;
3123
+ getElementsByTagName(name: "br"): NodeListOf<HTMLBRElement>;
3124
+ getElementsByTagName(name: "button"): NodeListOf<HTMLButtonElement>;
3125
+ getElementsByTagName(name: "canvas"): NodeListOf<HTMLCanvasElement>;
3126
+ getElementsByTagName(name: "caption"): NodeListOf<HTMLTableCaptionElement>;
3127
+ getElementsByTagName(name: "cite"): NodeListOf<HTMLElement>;
3128
+ getElementsByTagName(name: "code"): NodeListOf<HTMLElement>;
3129
+ getElementsByTagName(name: "col"): NodeListOf<HTMLTableColElement>;
3130
+ getElementsByTagName(name: "colgroup"): NodeListOf<HTMLTableColElement>;
3131
+ getElementsByTagName(name: "datalist"): NodeListOf<HTMLDataListElement>;
3132
+ getElementsByTagName(name: "dd"): NodeListOf<HTMLElement>;
3133
+ getElementsByTagName(name: "del"): NodeListOf<HTMLModElement>;
3134
+ getElementsByTagName(name: "dfn"): NodeListOf<HTMLElement>;
3135
+ getElementsByTagName(name: "div"): NodeListOf<HTMLDivElement>;
3136
+ getElementsByTagName(name: "dl"): NodeListOf<HTMLDListElement>;
3137
+ getElementsByTagName(name: "dt"): NodeListOf<HTMLElement>;
3138
+ getElementsByTagName(name: "em"): NodeListOf<HTMLElement>;
3139
+ getElementsByTagName(name: "embed"): NodeListOf<HTMLEmbedElement>;
3140
+ getElementsByTagName(name: "fieldset"): NodeListOf<HTMLFieldSetElement>;
3141
+ getElementsByTagName(name: "figcaption"): NodeListOf<HTMLElement>;
3142
+ getElementsByTagName(name: "figure"): NodeListOf<HTMLElement>;
3143
+ getElementsByTagName(name: "footer"): NodeListOf<HTMLElement>;
3144
+ getElementsByTagName(name: "form"): NodeListOf<HTMLFormElement>;
3145
+ getElementsByTagName(name: "h1"): NodeListOf<HTMLHeadingElement>;
3146
+ getElementsByTagName(name: "h2"): NodeListOf<HTMLHeadingElement>;
3147
+ getElementsByTagName(name: "h3"): NodeListOf<HTMLHeadingElement>;
3148
+ getElementsByTagName(name: "h4"): NodeListOf<HTMLHeadingElement>;
3149
+ getElementsByTagName(name: "h5"): NodeListOf<HTMLHeadingElement>;
3150
+ getElementsByTagName(name: "h6"): NodeListOf<HTMLHeadingElement>;
3151
+ getElementsByTagName(name: "head"): NodeListOf<HTMLHeadElement>;
3152
+ getElementsByTagName(name: "header"): NodeListOf<HTMLElement>;
3153
+ getElementsByTagName(name: "hgroup"): NodeListOf<HTMLElement>;
3154
+ getElementsByTagName(name: "hr"): NodeListOf<HTMLHRElement>;
3155
+ getElementsByTagName(name: "html"): NodeListOf<HTMLHtmlElement>;
3156
+ getElementsByTagName(name: "i"): NodeListOf<HTMLElement>;
3157
+ getElementsByTagName(name: "iframe"): NodeListOf<HTMLIFrameElement>;
3158
+ getElementsByTagName(name: "img"): NodeListOf<HTMLImageElement>;
3159
+ getElementsByTagName(name: "input"): NodeListOf<HTMLInputElement>;
3160
+ getElementsByTagName(name: "ins"): NodeListOf<HTMLModElement>;
3161
+ getElementsByTagName(name: "kbd"): NodeListOf<HTMLElement>;
3162
+ getElementsByTagName(name: "label"): NodeListOf<HTMLLabelElement>;
3163
+ getElementsByTagName(name: "legend"): NodeListOf<HTMLLegendElement>;
3164
+ getElementsByTagName(name: "li"): NodeListOf<HTMLLIElement>;
3165
+ getElementsByTagName(name: "link"): NodeListOf<HTMLLinkElement>;
3166
+ getElementsByTagName(name: "main"): NodeListOf<HTMLElement>;
3167
+ getElementsByTagName(name: "map"): NodeListOf<HTMLMapElement>;
3168
+ getElementsByTagName(name: "mark"): NodeListOf<HTMLElement>;
3169
+ getElementsByTagName(name: "menu"): NodeListOf<HTMLMenuElement>;
3170
+ getElementsByTagName(name: "meta"): NodeListOf<HTMLMetaElement>;
3171
+ getElementsByTagName(name: "nav"): NodeListOf<HTMLElement>;
3172
+ getElementsByTagName(name: "noscript"): NodeListOf<HTMLElement>;
3173
+ getElementsByTagName(name: "object"): NodeListOf<HTMLObjectElement>;
3174
+ getElementsByTagName(name: "ol"): NodeListOf<HTMLOListElement>;
3175
+ getElementsByTagName(name: "optgroup"): NodeListOf<HTMLOptGroupElement>;
3176
+ getElementsByTagName(name: "option"): NodeListOf<HTMLOptionElement>;
3177
+ getElementsByTagName(name: "p"): NodeListOf<HTMLParagraphElement>;
3178
+ getElementsByTagName(name: "param"): NodeListOf<HTMLParamElement>;
3179
+ getElementsByTagName(name: "pre"): NodeListOf<HTMLPreElement>;
3180
+ getElementsByTagName(name: "progress"): NodeListOf<HTMLProgressElement>;
3181
+ getElementsByTagName(name: "q"): NodeListOf<HTMLQuoteElement>;
3182
+ getElementsByTagName(name: "rp"): NodeListOf<HTMLElement>;
3183
+ getElementsByTagName(name: "rt"): NodeListOf<HTMLElement>;
3184
+ getElementsByTagName(name: "ruby"): NodeListOf<HTMLElement>;
3185
+ getElementsByTagName(name: "s"): NodeListOf<HTMLElement>;
3186
+ getElementsByTagName(name: "samp"): NodeListOf<HTMLElement>;
3187
+ getElementsByTagName(name: "script"): NodeListOf<HTMLScriptElement>;
3188
+ getElementsByTagName(name: "section"): NodeListOf<HTMLElement>;
3189
+ getElementsByTagName(name: "select"): NodeListOf<HTMLSelectElement>;
3190
+ getElementsByTagName(name: "small"): NodeListOf<HTMLElement>;
3191
+ getElementsByTagName(name: "source"): NodeListOf<HTMLSourceElement>;
3192
+ getElementsByTagName(name: "span"): NodeListOf<HTMLSpanElement>;
3193
+ getElementsByTagName(name: "strong"): NodeListOf<HTMLElement>;
3194
+ getElementsByTagName(name: "style"): NodeListOf<HTMLStyleElement>;
3195
+ getElementsByTagName(name: "sub"): NodeListOf<HTMLElement>;
3196
+ getElementsByTagName(name: "summary"): NodeListOf<HTMLElement>;
3197
+ getElementsByTagName(name: "sup"): NodeListOf<HTMLElement>;
3198
+ getElementsByTagName(name: "table"): NodeListOf<HTMLTableElement>;
3199
+ getElementsByTagName(name: "tbody"): NodeListOf<HTMLTableSectionElement>;
3200
+ getElementsByTagName(name: "td"): NodeListOf<HTMLTableDataCellElement>;
3201
+ getElementsByTagName(name: "textarea"): NodeListOf<HTMLTextAreaElement>;
3202
+ getElementsByTagName(name: "tfoot"): NodeListOf<HTMLTableSectionElement>;
3203
+ getElementsByTagName(name: "th"): NodeListOf<HTMLTableHeaderCellElement>;
3204
+ getElementsByTagName(name: "thead"): NodeListOf<HTMLTableSectionElement>;
3205
+ getElementsByTagName(name: "title"): NodeListOf<HTMLTitleElement>;
3206
+ getElementsByTagName(name: "tr"): NodeListOf<HTMLTableRowElement>;
3207
+ getElementsByTagName(name: "track"): NodeListOf<HTMLTrackElement>;
3208
+ getElementsByTagName(name: "u"): NodeListOf<HTMLElement>;
3209
+ getElementsByTagName(name: "ul"): NodeListOf<HTMLUListElement>;
3210
+ getElementsByTagName(name: "var"): NodeListOf<HTMLElement>;
3211
+ getElementsByTagName(name: "video"): NodeListOf<HTMLVideoElement>;
3212
+ getElementsByTagName(name: "wbr"): NodeListOf<HTMLElement>;
2799
3213
  getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList;
2800
3214
  createProcessingInstruction(target: string, data: string): ProcessingInstruction;
2801
3215
  createElementNS(namespaceURI: string, qualifiedName: string): Element;
2802
3216
  createAttribute(name: string): Attr;
2803
3217
  createTextNode(data: string): Text;
2804
- importNode(importedNode: Node, deep: bool): Node;
3218
+ importNode(importedNode: Node, deep: boolean): Node;
2805
3219
  createCDATASection(data: string): CDATASection;
2806
3220
  createAttributeNS(namespaceURI: string, qualifiedName: string): Attr;
2807
3221
  getElementById(elementId: string): HTMLElement;
@@ -2815,7 +3229,7 @@ interface MessageEvent extends Event {
2815
3229
  source: Window;
2816
3230
  origin: string;
2817
3231
  data: any;
2818
- initMessageEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: Window): void;
3232
+ initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: Window): void;
2819
3233
  }
2820
3234
  declare var MessageEvent: {
2821
3235
  prototype: MessageEvent;
@@ -2834,7 +3248,7 @@ declare var SVGElement: {
2834
3248
  }
2835
3249
 
2836
3250
  interface HTMLScriptElement extends HTMLElement {
2837
- defer: bool;
3251
+ defer: boolean;
2838
3252
  text: string;
2839
3253
  src: string;
2840
3254
  htmlFor: string;
@@ -2908,9 +3322,9 @@ interface CanvasRenderingContext2D {
2908
3322
  restore(): void;
2909
3323
  setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void;
2910
3324
  save(): void;
2911
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: bool): void;
3325
+ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
2912
3326
  measureText(text: string): TextMetrics;
2913
- isPointInPath(x: number, y: number): bool;
3327
+ isPointInPath(x: number, y: number): boolean;
2914
3328
  quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
2915
3329
  putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void;
2916
3330
  rotate(angle: number): void;
@@ -2966,12 +3380,12 @@ interface MSHTMLElementRangeExtensions {
2966
3380
 
2967
3381
  interface SVGPathSegArcAbs extends SVGPathSeg {
2968
3382
  y: number;
2969
- sweepFlag: bool;
3383
+ sweepFlag: boolean;
2970
3384
  r2: number;
2971
3385
  x: number;
2972
3386
  angle: number;
2973
3387
  r1: number;
2974
- largeArcFlag: bool;
3388
+ largeArcFlag: boolean;
2975
3389
  }
2976
3390
  declare var SVGPathSegArcAbs: {
2977
3391
  prototype: SVGPathSegArcAbs;
@@ -2980,7 +3394,7 @@ declare var SVGPathSegArcAbs: {
2980
3394
 
2981
3395
  interface MSScreenExtensions {
2982
3396
  deviceXDPI: number;
2983
- fontSmoothingEnabled: bool;
3397
+ fontSmoothingEnabled: boolean;
2984
3398
  bufferDepth: number;
2985
3399
  logicalXDPI: number;
2986
3400
  systemXDPI: number;
@@ -3038,7 +3452,7 @@ interface HTMLFrameElement extends HTMLElement, GetSVGDocument, MSHTMLFrameEleme
3038
3452
  marginWidth: string;
3039
3453
  contentDocument: Document;
3040
3454
  longDesc: string;
3041
- noResize: bool;
3455
+ noResize: boolean;
3042
3456
  }
3043
3457
  declare var HTMLFrameElement: {
3044
3458
  prototype: HTMLFrameElement;
@@ -3097,13 +3511,15 @@ interface MSHTMLButtonElementExtensions {
3097
3511
 
3098
3512
  interface XMLHttpRequest extends EventTarget, MSXMLHttpRequestExtensions {
3099
3513
  onreadystatechange: (ev: Event) => any;
3514
+ addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
3100
3515
  status: number;
3101
3516
  onload: (ev: Event) => any;
3517
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
3102
3518
  readyState: number;
3103
3519
  responseText: string;
3104
3520
  responseXML: Document;
3105
3521
  statusText: string;
3106
- open(method: string, url: string, async?: bool, user?: string, password?: string): void;
3522
+ open(method: string, url: string, async?: boolean, user?: string, password?: string): void;
3107
3523
  send(data?: any): void;
3108
3524
  abort(): void;
3109
3525
  getAllResponseHeaders(): string;
@@ -3114,6 +3530,7 @@ interface XMLHttpRequest extends EventTarget, MSXMLHttpRequestExtensions {
3114
3530
  UNSENT: number;
3115
3531
  OPENED: number;
3116
3532
  HEADERS_RECEIVED: number;
3533
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
3117
3534
  }
3118
3535
  declare var XMLHttpRequest: {
3119
3536
  prototype: XMLHttpRequest;
@@ -3187,21 +3604,36 @@ interface MSHTMLTableCellElementExtensions {
3187
3604
 
3188
3605
  interface HTMLFrameSetElement extends HTMLElement, MSHTMLFrameSetElementExtensions, MSBorderColorStyle_HTMLFrameSetElement {
3189
3606
  onresize: (ev: UIEvent) => any;
3607
+ addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
3190
3608
  ononline: (ev: Event) => any;
3609
+ addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
3191
3610
  onafterprint: (ev: Event) => any;
3611
+ addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
3192
3612
  onbeforeprint: (ev: Event) => any;
3613
+ addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
3193
3614
  onoffline: (ev: Event) => any;
3615
+ addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
3194
3616
  rows: string;
3195
3617
  cols: string;
3196
3618
  onblur: (ev: FocusEvent) => any;
3619
+ addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
3197
3620
  onunload: (ev: Event) => any;
3621
+ addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
3198
3622
  onhashchange: (ev: Event) => any;
3623
+ addEventListener(type: "hashchange", listener: (ev: Event) => any, useCapture?: boolean): void;
3199
3624
  onfocus: (ev: FocusEvent) => any;
3625
+ addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
3200
3626
  onmessage: (ev: MessageEvent) => any;
3627
+ addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
3201
3628
  onload: (ev: Event) => any;
3629
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
3202
3630
  onerror: (ev: Event) => any;
3631
+ addEventListener(type: "error", listener: (ev: Event) => any, useCapture?: boolean): void;
3203
3632
  onbeforeunload: (ev: BeforeUnloadEvent) => any;
3633
+ addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
3204
3634
  onstorage: (ev: StorageEvent) => any;
3635
+ addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
3636
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
3205
3637
  }
3206
3638
  declare var HTMLFrameSetElement: {
3207
3639
  prototype: HTMLFrameSetElement;
@@ -3259,8 +3691,8 @@ interface SVGLangSpace {
3259
3691
  interface DataTransfer {
3260
3692
  effectAllowed: string;
3261
3693
  dropEffect: string;
3262
- clearData(format?: string): bool;
3263
- setData(format: string, data: string): bool;
3694
+ clearData(format?: string): boolean;
3695
+ setData(format: string, data: string): boolean;
3264
3696
  getData(format: string): string;
3265
3697
  }
3266
3698
  declare var DataTransfer: {
@@ -3270,7 +3702,7 @@ declare var DataTransfer: {
3270
3702
 
3271
3703
  interface FocusEvent extends UIEvent {
3272
3704
  relatedTarget: EventTarget;
3273
- initFocusEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, relatedTargetArg: EventTarget): void;
3705
+ initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, relatedTargetArg: EventTarget): void;
3274
3706
  }
3275
3707
  declare var FocusEvent: {
3276
3708
  prototype: FocusEvent;
@@ -3279,7 +3711,7 @@ declare var FocusEvent: {
3279
3711
 
3280
3712
  interface Range {
3281
3713
  startOffset: number;
3282
- collapsed: bool;
3714
+ collapsed: boolean;
3283
3715
  endOffset: number;
3284
3716
  startContainer: Node;
3285
3717
  endContainer: Node;
@@ -3293,7 +3725,7 @@ interface Range {
3293
3725
  toString(): string;
3294
3726
  compareBoundaryPoints(how: number, sourceRange: Range): number;
3295
3727
  insertNode(newNode: Node): void;
3296
- collapse(toStart: bool): void;
3728
+ collapse(toStart: boolean): void;
3297
3729
  selectNodeContents(refNode: Node): void;
3298
3730
  cloneContents(): DocumentFragment;
3299
3731
  setEnd(refNode: Node, offset: number): void;
@@ -3334,7 +3766,7 @@ declare var SVGPoint: {
3334
3766
 
3335
3767
  interface MSPluginsCollection {
3336
3768
  length: number;
3337
- refresh(reload?: bool): void;
3769
+ refresh(reload?: boolean): void;
3338
3770
  }
3339
3771
  declare var MSPluginsCollection: {
3340
3772
  prototype: MSPluginsCollection;
@@ -3372,7 +3804,7 @@ interface SVGSVGElement extends SVGElement, SVGZoomAndPan, SVGLangSpace, SVGLoca
3372
3804
  getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeList;
3373
3805
  unpauseAnimations(): void;
3374
3806
  createSVGRect(): SVGRect;
3375
- checkIntersection(element: SVGElement, rect: SVGRect): bool;
3807
+ checkIntersection(element: SVGElement, rect: SVGRect): boolean;
3376
3808
  unsuspendRedrawAll(): void;
3377
3809
  pauseAnimations(): void;
3378
3810
  suspendRedraw(maxWaitMilliseconds: number): number;
@@ -3383,7 +3815,7 @@ interface SVGSVGElement extends SVGElement, SVGZoomAndPan, SVGLangSpace, SVGLoca
3383
3815
  unsuspendRedraw(suspendHandleID: number): void;
3384
3816
  forceRedraw(): void;
3385
3817
  getCurrentTime(): number;
3386
- checkEnclosure(element: SVGElement, rect: SVGRect): bool;
3818
+ checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
3387
3819
  createSVGMatrix(): SVGMatrix;
3388
3820
  createSVGPoint(): SVGPoint;
3389
3821
  createSVGNumber(): SVGNumber;
@@ -3488,7 +3920,7 @@ interface ViewCSS {
3488
3920
  }
3489
3921
 
3490
3922
  interface MSAttrExtensions {
3491
- expando: bool;
3923
+ expando: boolean;
3492
3924
  }
3493
3925
 
3494
3926
  interface MSStorageExtensions {
@@ -3528,12 +3960,12 @@ interface MSHTMLCollectionExtensions {
3528
3960
  }
3529
3961
 
3530
3962
  interface DOML2DeprecatedWordWrapSuppression_HTMLDivElement {
3531
- noWrap: bool;
3963
+ noWrap: boolean;
3532
3964
  }
3533
3965
 
3534
3966
  interface DocumentTraversal {
3535
- createNodeIterator(root: Node, whatToShow: number, filter: NodeFilterCallback, entityReferenceExpansion: bool): NodeIterator;
3536
- createTreeWalker(root: Node, whatToShow: number, filter: NodeFilterCallback, entityReferenceExpansion: bool): TreeWalker;
3967
+ createNodeIterator(root: Node, whatToShow: number, filter: NodeFilterCallback, entityReferenceExpansion: boolean): NodeIterator;
3968
+ createTreeWalker(root: Node, whatToShow: number, filter: NodeFilterCallback, entityReferenceExpansion: boolean): TreeWalker;
3537
3969
  }
3538
3970
 
3539
3971
  interface Storage extends MSStorageExtensions {
@@ -3576,7 +4008,7 @@ declare var HTMLIFrameElement: {
3576
4008
  interface MSNavigatorAbilities {
3577
4009
  userLanguage: string;
3578
4010
  plugins: MSPluginsCollection;
3579
- cookieEnabled: bool;
4011
+ cookieEnabled: boolean;
3580
4012
  appCodeName: string;
3581
4013
  cpuClass: string;
3582
4014
  appMinorVersion: string;
@@ -3585,8 +4017,8 @@ interface MSNavigatorAbilities {
3585
4017
  mimeTypes: MSMimeTypesCollection;
3586
4018
  product: string;
3587
4019
  systemLanguage: string;
3588
- javaEnabled(): bool;
3589
- taintEnabled(): bool;
4020
+ javaEnabled(): boolean;
4021
+ taintEnabled(): boolean;
3590
4022
  }
3591
4023
 
3592
4024
  interface TextRangeCollection {
@@ -3601,19 +4033,34 @@ declare var TextRangeCollection: {
3601
4033
 
3602
4034
  interface HTMLBodyElement extends HTMLElement, HTMLBodyElementDOML2Deprecated, MSHTMLBodyElementExtensions, DOML2DeprecatedBackgroundStyle, DOML2DeprecatedBackgroundColorStyle {
3603
4035
  onresize: (ev: UIEvent) => any;
4036
+ addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
3604
4037
  ononline: (ev: Event) => any;
4038
+ addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
3605
4039
  onafterprint: (ev: Event) => any;
4040
+ addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
3606
4041
  onbeforeprint: (ev: Event) => any;
4042
+ addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
3607
4043
  onoffline: (ev: Event) => any;
4044
+ addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
3608
4045
  onblur: (ev: FocusEvent) => any;
4046
+ addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
3609
4047
  onhashchange: (ev: Event) => any;
4048
+ addEventListener(type: "hashchange", listener: (ev: Event) => any, useCapture?: boolean): void;
3610
4049
  onunload: (ev: Event) => any;
4050
+ addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
3611
4051
  onfocus: (ev: FocusEvent) => any;
4052
+ addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
3612
4053
  onmessage: (ev: MessageEvent) => any;
4054
+ addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
3613
4055
  onload: (ev: Event) => any;
4056
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
3614
4057
  onerror: (ev: Event) => any;
4058
+ addEventListener(type: "error", listener: (ev: Event) => any, useCapture?: boolean): void;
3615
4059
  onbeforeunload: (ev: BeforeUnloadEvent) => any;
4060
+ addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
3616
4061
  onstorage: (ev: StorageEvent) => any;
4062
+ addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
4063
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
3617
4064
  }
3618
4065
  declare var HTMLBodyElement: {
3619
4066
  prototype: HTMLBodyElement;
@@ -3634,8 +4081,8 @@ declare var DocumentType: {
3634
4081
  }
3635
4082
 
3636
4083
  interface MSHTMLInputElementExtensions extends DOML2DeprecatedMarginStyle_HTMLInputElement, DOML2DeprecatedBorderStyle_HTMLInputElement {
3637
- status: bool;
3638
- complete: bool;
4084
+ status: boolean;
4085
+ complete: boolean;
3639
4086
  createTextRange(): TextRange;
3640
4087
  }
3641
4088
 
@@ -3661,7 +4108,7 @@ interface MutationEvent extends Event {
3661
4108
  attrName: string;
3662
4109
  prevValue: string;
3663
4110
  relatedNode: Node;
3664
- initMutationEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;
4111
+ initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;
3665
4112
  MODIFICATION: number;
3666
4113
  REMOVAL: number;
3667
4114
  ADDITION: number;
@@ -3676,7 +4123,7 @@ declare var MutationEvent: {
3676
4123
 
3677
4124
  interface DragEvent extends MouseEvent {
3678
4125
  dataTransfer: DataTransfer;
3679
- initDragEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: bool, altKeyArg: bool, shiftKeyArg: bool, metaKeyArg: bool, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void;
4126
+ initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void;
3680
4127
  }
3681
4128
  declare var DragEvent: {
3682
4129
  prototype: DragEvent;
@@ -3703,7 +4150,7 @@ interface DOML2DeprecatedListNumberingAndBulletStyle {
3703
4150
 
3704
4151
  interface HTMLInputElement extends HTMLElement, DOML2DeprecatedAlignmentStyle_HTMLInputElement, MSImageResourceExtensions_HTMLInputElement, MSHTMLInputElementExtensions, MSDataBindingExtensions {
3705
4152
  width: string;
3706
- defaultChecked: bool;
4153
+ defaultChecked: boolean;
3707
4154
  alt: string;
3708
4155
  accept: string;
3709
4156
  value: string;
@@ -3713,10 +4160,10 @@ interface HTMLInputElement extends HTMLElement, DOML2DeprecatedAlignmentStyle_HT
3713
4160
  form: HTMLFormElement;
3714
4161
  selectionStart: number;
3715
4162
  height: string;
3716
- indeterminate: bool;
3717
- readOnly: bool;
4163
+ indeterminate: boolean;
4164
+ readOnly: boolean;
3718
4165
  size: number;
3719
- checked: bool;
4166
+ checked: boolean;
3720
4167
  maxLength: number;
3721
4168
  selectionEnd: number;
3722
4169
  type: string;
@@ -3767,8 +4214,8 @@ declare var SVGImageElement: {
3767
4214
  }
3768
4215
 
3769
4216
  interface MSElementExtensions {
3770
- msMatchesSelector(selectors: string): bool;
3771
- fireEvent(eventName: string, eventObj?: any): bool;
4217
+ msMatchesSelector(selectors: string): boolean;
4218
+ fireEvent(eventName: string, eventObj?: any): boolean;
3772
4219
  }
3773
4220
 
3774
4221
  interface HTMLParamElement extends HTMLElement {
@@ -3859,20 +4306,31 @@ interface DOMHTMLImplementation {
3859
4306
  }
3860
4307
 
3861
4308
  interface NavigatorOnLine {
3862
- onLine: bool;
4309
+ onLine: boolean;
3863
4310
  }
3864
4311
 
3865
4312
  interface SVGElementEventHandlers {
3866
4313
  onmouseover: (ev: MouseEvent) => any;
4314
+ addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
3867
4315
  onmousemove: (ev: MouseEvent) => any;
4316
+ addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
3868
4317
  onmouseout: (ev: MouseEvent) => any;
4318
+ addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
3869
4319
  ondblclick: (ev: MouseEvent) => any;
4320
+ addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
3870
4321
  onfocusout: (ev: FocusEvent) => any;
4322
+ addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
3871
4323
  onfocusin: (ev: FocusEvent) => any;
4324
+ addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
3872
4325
  onmousedown: (ev: MouseEvent) => any;
4326
+ addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
3873
4327
  onmouseup: (ev: MouseEvent) => any;
4328
+ addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
3874
4329
  onload: (ev: Event) => any;
4330
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
3875
4331
  onclick: (ev: MouseEvent) => any;
4332
+ addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4333
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
3876
4334
  }
3877
4335
 
3878
4336
  interface WindowLocalStorage {
@@ -3888,12 +4346,12 @@ declare var SVGMetadataElement: {
3888
4346
 
3889
4347
  interface SVGPathSegArcRel extends SVGPathSeg {
3890
4348
  y: number;
3891
- sweepFlag: bool;
4349
+ sweepFlag: boolean;
3892
4350
  r2: number;
3893
4351
  x: number;
3894
4352
  angle: number;
3895
4353
  r1: number;
3896
- largeArcFlag: bool;
4354
+ largeArcFlag: boolean;
3897
4355
  }
3898
4356
  declare var SVGPathSegArcRel: {
3899
4357
  prototype: SVGPathSegArcRel;
@@ -3927,14 +4385,19 @@ declare var SVGStringList: {
3927
4385
  interface XDomainRequest {
3928
4386
  timeout: number;
3929
4387
  onerror: (ev: Event) => any;
4388
+ addEventListener(type: "error", listener: (ev: Event) => any, useCapture?: boolean): void;
3930
4389
  onload: (ev: Event) => any;
4390
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
3931
4391
  onprogress: (ev: any) => any;
4392
+ addEventListener(type: "progress", listener: (ev: any) => any, useCapture?: boolean): void;
3932
4393
  ontimeout: (ev: Event) => any;
4394
+ addEventListener(type: "timeout", listener: (ev: Event) => any, useCapture?: boolean): void;
3933
4395
  responseText: string;
3934
4396
  contentType: string;
3935
4397
  open(method: string, url: string): void;
3936
4398
  abort(): void;
3937
4399
  send(data?: any): void;
4400
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
3938
4401
  }
3939
4402
  declare var XDomainRequest: {
3940
4403
  prototype: XDomainRequest;
@@ -4020,7 +4483,7 @@ declare var SVGPathSegCurvetoCubicRel: {
4020
4483
  new(): SVGPathSegCurvetoCubicRel;
4021
4484
  }
4022
4485
 
4023
- interface MSEventObj {
4486
+ interface MSEventObj extends Event {
4024
4487
  nextPage: string;
4025
4488
  keyCode: number;
4026
4489
  toElement: Element;
@@ -4040,12 +4503,12 @@ interface MSEventObj {
4040
4503
  data: string;
4041
4504
  srcFilter: Object;
4042
4505
  boundElements: HTMLCollection;
4043
- cancelBubble: bool;
4044
- altLeft: bool;
4506
+ cancelBubble: boolean;
4507
+ altLeft: boolean;
4045
4508
  behaviorCookie: number;
4046
4509
  bookmarks: BookmarkCollection;
4047
4510
  type: string;
4048
- repeat: bool;
4511
+ repeat: boolean;
4049
4512
  srcElement: Element;
4050
4513
  source: Window;
4051
4514
  fromElement: Element;
@@ -4053,21 +4516,21 @@ interface MSEventObj {
4053
4516
  x: number;
4054
4517
  behaviorPart: number;
4055
4518
  qualifier: string;
4056
- altKey: bool;
4057
- ctrlKey: bool;
4519
+ altKey: boolean;
4520
+ ctrlKey: boolean;
4058
4521
  clientY: number;
4059
- shiftKey: bool;
4060
- shiftLeft: bool;
4061
- contentOverflow: bool;
4522
+ shiftKey: boolean;
4523
+ shiftLeft: boolean;
4524
+ contentOverflow: boolean;
4062
4525
  screenY: number;
4063
- ctrlLeft: bool;
4526
+ ctrlLeft: boolean;
4064
4527
  button: number;
4065
4528
  srcUrn: string;
4066
4529
  clientX: number;
4067
4530
  actionURL: string;
4068
4531
  getAttribute(strAttributeName: string, lFlags?: number): any;
4069
4532
  setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void;
4070
- removeAttribute(strAttributeName: string, lFlags?: number): bool;
4533
+ removeAttribute(strAttributeName: string, lFlags?: number): boolean;
4071
4534
  }
4072
4535
  declare var MSEventObj: {
4073
4536
  prototype: MSEventObj;
@@ -4110,7 +4573,8 @@ interface HTMLCanvasElement extends HTMLElement {
4110
4573
  height: number;
4111
4574
  toDataURL(): string;
4112
4575
  toDataURL(type: string, ...args: any[]): string;
4113
- getContext(contextId: string): CanvasRenderingContext2D;
4576
+ getContext(contextId: string): any;
4577
+ getContext(contextId: "2d"): CanvasRenderingContext2D;
4114
4578
  }
4115
4579
  declare var HTMLCanvasElement: {
4116
4580
  prototype: HTMLCanvasElement;
@@ -4134,7 +4598,7 @@ interface Location {
4134
4598
  port: string;
4135
4599
  pathname: string;
4136
4600
  host: string;
4137
- reload(flag?: bool): void;
4601
+ reload(flag?: boolean): void;
4138
4602
  replace(url: string): void;
4139
4603
  assign(url: string): void;
4140
4604
  toString(): string;
@@ -4155,11 +4619,11 @@ declare var HTMLStyleElement: {
4155
4619
 
4156
4620
  interface MSHTMLOptGroupElementExtensions {
4157
4621
  index: number;
4158
- defaultSelected: bool;
4622
+ defaultSelected: boolean;
4159
4623
  text: string;
4160
4624
  value: string;
4161
4625
  form: HTMLFormElement;
4162
- selected: bool;
4626
+ selected: boolean;
4163
4627
  }
4164
4628
 
4165
4629
  interface MSBorderColorHighlightStyle {
@@ -4203,7 +4667,7 @@ declare var SVGTransform: {
4203
4667
 
4204
4668
  interface MSCSSFilter {
4205
4669
  Percent: number;
4206
- Enabled: bool;
4670
+ Enabled: boolean;
4207
4671
  Duration: number;
4208
4672
  Play(Duration: number): void;
4209
4673
  Apply(): void;
@@ -4217,7 +4681,7 @@ declare var MSCSSFilter: {
4217
4681
  interface UIEvent extends Event {
4218
4682
  detail: number;
4219
4683
  view: AbstractView;
4220
- initUIEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number): void;
4684
+ initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number): void;
4221
4685
  }
4222
4686
  declare var UIEvent: {
4223
4687
  prototype: UIEvent;
@@ -4284,7 +4748,7 @@ interface WheelEvent extends MouseEvent {
4284
4748
  deltaX: number;
4285
4749
  deltaMode: number;
4286
4750
  deltaY: number;
4287
- initWheelEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void;
4751
+ initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void;
4288
4752
  DOM_DELTA_PIXEL: number;
4289
4753
  DOM_DELTA_LINE: number;
4290
4754
  DOM_DELTA_PAGE: number;
@@ -4302,7 +4766,7 @@ interface DOML2DeprecatedAlignmentStyle_HTMLDivElement {
4302
4766
  }
4303
4767
 
4304
4768
  interface MSEventAttachmentTarget {
4305
- attachEvent(event: string, listener: EventListener): bool;
4769
+ attachEvent(event: string, listener: EventListener): boolean;
4306
4770
  detachEvent(event: string, listener: EventListener): void;
4307
4771
  }
4308
4772
 
@@ -4329,14 +4793,14 @@ interface SVGPathElement extends SVGElement, SVGStylable, SVGAnimatedPathData, S
4329
4793
  createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;
4330
4794
  createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
4331
4795
  createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
4332
- createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: bool, sweepFlag: bool): SVGPathSegArcRel;
4796
+ createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
4333
4797
  createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;
4334
4798
  createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;
4335
4799
  getTotalLength(): number;
4336
4800
  createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;
4337
4801
  createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;
4338
4802
  createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
4339
- createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: bool, sweepFlag: bool): SVGPathSegArcAbs;
4803
+ createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
4340
4804
  }
4341
4805
  declare var SVGPathElement: {
4342
4806
  prototype: SVGPathElement;
@@ -4354,7 +4818,7 @@ declare var MSCompatibleInfo: {
4354
4818
 
4355
4819
  interface MSHTMLDocumentEventExtensions {
4356
4820
  createEventObject(eventObj?: any): MSEventObj;
4357
- fireEvent(eventName: string, eventObj?: any): bool;
4821
+ fireEvent(eventName: string, eventObj?: any): boolean;
4358
4822
  }
4359
4823
 
4360
4824
  interface Text extends CharacterData, MSNodeExtensions {
@@ -4511,7 +4975,7 @@ declare var HTMLBaseFontElement: {
4511
4975
 
4512
4976
  interface CustomEvent extends Event {
4513
4977
  detail: Object;
4514
- initCustomEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, detailArg: Object): void;
4978
+ initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: Object): void;
4515
4979
  }
4516
4980
  declare var CustomEvent: {
4517
4981
  prototype: CustomEvent;
@@ -4545,7 +5009,7 @@ interface HTMLTextAreaElement extends HTMLElement, MSDataBindingExtensions, MSHT
4545
5009
  selectionStart: number;
4546
5010
  rows: number;
4547
5011
  cols: number;
4548
- readOnly: bool;
5012
+ readOnly: boolean;
4549
5013
  wrap: string;
4550
5014
  selectionEnd: number;
4551
5015
  type: string;
@@ -4588,7 +5052,8 @@ interface MSWindowModeless {
4588
5052
  interface HTMLMarqueeElement extends HTMLElement, DOML2DeprecatedMarginStyle_HTMLMarqueeElement, MSDataBindingExtensions, MSHTMLMarqueeElementExtensions, DOML2DeprecatedBackgroundColorStyle {
4589
5053
  width: string;
4590
5054
  onbounce: (ev: Event) => any;
4591
- trueSpeed: bool;
5055
+ addEventListener(type: "bounce", listener: (ev: Event) => any, useCapture?: boolean): void;
5056
+ trueSpeed: boolean;
4592
5057
  scrollAmount: number;
4593
5058
  scrollDelay: number;
4594
5059
  behavior: string;
@@ -4596,9 +5061,12 @@ interface HTMLMarqueeElement extends HTMLElement, DOML2DeprecatedMarginStyle_HTM
4596
5061
  loop: number;
4597
5062
  direction: string;
4598
5063
  onstart: (ev: Event) => any;
5064
+ addEventListener(type: "start", listener: (ev: Event) => any, useCapture?: boolean): void;
4599
5065
  onfinish: (ev: Event) => any;
5066
+ addEventListener(type: "finish", listener: (ev: Event) => any, useCapture?: boolean): void;
4600
5067
  stop(): void;
4601
5068
  start(): void;
5069
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
4602
5070
  }
4603
5071
  declare var HTMLMarqueeElement: {
4604
5072
  prototype: HTMLMarqueeElement;
@@ -4618,7 +5086,7 @@ declare var SVGRect: {
4618
5086
 
4619
5087
  interface MSNodeExtensions {
4620
5088
  swapNode(otherNode: Node): Node;
4621
- removeNode(deep?: bool): Node;
5089
+ removeNode(deep?: boolean): Node;
4622
5090
  replaceNode(replacement: Node): Node;
4623
5091
  }
4624
5092
 
@@ -4734,7 +5202,7 @@ declare var HTMLModElement: {
4734
5202
  }
4735
5203
 
4736
5204
  interface DOML2DeprecatedWordWrapSuppression {
4737
- noWrap: bool;
5205
+ noWrap: boolean;
4738
5206
  }
4739
5207
 
4740
5208
  interface BeforeUnloadEvent extends Event {
@@ -4747,7 +5215,7 @@ declare var BeforeUnloadEvent: {
4747
5215
 
4748
5216
  interface MSPopupWindow {
4749
5217
  document: HTMLDocument;
4750
- isOpen: bool;
5218
+ isOpen: boolean;
4751
5219
  show(x: number, y: number, w: number, h: number, element?: any): void;
4752
5220
  hide(): void;
4753
5221
  }
@@ -4795,15 +5263,15 @@ declare var SVGUseElement: {
4795
5263
 
4796
5264
  interface Event extends MSEventExtensions {
4797
5265
  timeStamp: number;
4798
- defaultPrevented: bool;
4799
- isTrusted: bool;
5266
+ defaultPrevented: boolean;
5267
+ isTrusted: boolean;
4800
5268
  currentTarget: EventTarget;
4801
5269
  target: EventTarget;
4802
5270
  eventPhase: number;
4803
5271
  type: string;
4804
- cancelable: bool;
4805
- bubbles: bool;
4806
- initEvent(eventTypeArg: string, canBubbleArg: bool, cancelableArg: bool): void;
5272
+ cancelable: boolean;
5273
+ bubbles: boolean;
5274
+ initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void;
4807
5275
  stopPropagation(): void;
4808
5276
  stopImmediatePropagation(): void;
4809
5277
  preventDefault(): void;
@@ -4831,76 +5299,115 @@ declare var ImageData: {
4831
5299
 
4832
5300
  interface MSHTMLElementExtensions {
4833
5301
  onlosecapture: (ev: MSEventObj) => any;
5302
+ addEventListener(type: "losecapture", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4834
5303
  onrowexit: (ev: MSEventObj) => any;
5304
+ addEventListener(type: "rowexit", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4835
5305
  oncontrolselect: (ev: MSEventObj) => any;
5306
+ addEventListener(type: "controlselect", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4836
5307
  onrowsinserted: (ev: MSEventObj) => any;
5308
+ addEventListener(type: "rowsinserted", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4837
5309
  onmouseleave: (ev: MouseEvent) => any;
5310
+ addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4838
5311
  document: HTMLDocument;
4839
5312
  behaviorUrns: MSBehaviorUrnsCollection;
4840
5313
  onpropertychange: (ev: MSEventObj) => any;
5314
+ addEventListener(type: "propertychange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4841
5315
  children: HTMLCollection;
4842
5316
  filters: Object;
4843
5317
  onbeforecut: (ev: DragEvent) => any;
5318
+ addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4844
5319
  scopeName: string;
4845
5320
  onbeforepaste: (ev: DragEvent) => any;
5321
+ addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4846
5322
  onmove: (ev: MSEventObj) => any;
5323
+ addEventListener(type: "move", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4847
5324
  onafterupdate: (ev: MSEventObj) => any;
5325
+ addEventListener(type: "afterupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4848
5326
  onbeforecopy: (ev: DragEvent) => any;
5327
+ addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4849
5328
  onlayoutcomplete: (ev: MSEventObj) => any;
5329
+ addEventListener(type: "layoutcomplete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4850
5330
  onresizeend: (ev: MSEventObj) => any;
5331
+ addEventListener(type: "resizeend", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4851
5332
  uniqueID: string;
4852
5333
  onhelp: (ev: Event) => any;
5334
+ addEventListener(type: "help", listener: (ev: Event) => any, useCapture?: boolean): void;
4853
5335
  onbeforeactivate: (ev: UIEvent) => any;
4854
- isMultiLine: bool;
5336
+ addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
5337
+ isMultiLine: boolean;
4855
5338
  uniqueNumber: number;
4856
5339
  tagUrn: string;
4857
5340
  onfocusout: (ev: FocusEvent) => any;
5341
+ addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
4858
5342
  ondataavailable: (ev: MSEventObj) => any;
4859
- hideFocus: bool;
5343
+ addEventListener(type: "dataavailable", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
5344
+ hideFocus: boolean;
4860
5345
  onbeforeupdate: (ev: MSEventObj) => any;
5346
+ addEventListener(type: "beforeupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4861
5347
  onfilterchange: (ev: MSEventObj) => any;
5348
+ addEventListener(type: "filterchange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4862
5349
  onfocusin: (ev: FocusEvent) => any;
5350
+ addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
4863
5351
  recordNumber: any;
4864
5352
  parentTextEdit: Element;
4865
5353
  ondatasetcomplete: (ev: MSEventObj) => any;
5354
+ addEventListener(type: "datasetcomplete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4866
5355
  onbeforedeactivate: (ev: UIEvent) => any;
5356
+ addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
4867
5357
  outerText: string;
4868
5358
  onresizestart: (ev: MSEventObj) => any;
5359
+ addEventListener(type: "resizestart", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4869
5360
  onactivate: (ev: UIEvent) => any;
4870
- isTextEdit: bool;
4871
- isDisabled: bool;
5361
+ addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
5362
+ isTextEdit: boolean;
5363
+ isDisabled: boolean;
4872
5364
  readyState: string;
4873
5365
  all: HTMLCollection;
4874
5366
  onmouseenter: (ev: MouseEvent) => any;
5367
+ addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4875
5368
  onmovestart: (ev: MSEventObj) => any;
5369
+ addEventListener(type: "movestart", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4876
5370
  onselectstart: (ev: Event) => any;
5371
+ addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void;
4877
5372
  onpaste: (ev: DragEvent) => any;
4878
- canHaveHTML: bool;
5373
+ addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5374
+ canHaveHTML: boolean;
4879
5375
  innerText: string;
4880
5376
  onerrorupdate: (ev: MSEventObj) => any;
5377
+ addEventListener(type: "errorupdate", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4881
5378
  ondeactivate: (ev: UIEvent) => any;
5379
+ addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
4882
5380
  oncut: (ev: DragEvent) => any;
5381
+ addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4883
5382
  onmoveend: (ev: MSEventObj) => any;
5383
+ addEventListener(type: "moveend", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4884
5384
  onresize: (ev: UIEvent) => any;
5385
+ addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
4885
5386
  language: string;
4886
5387
  ondatasetchanged: (ev: MSEventObj) => any;
5388
+ addEventListener(type: "datasetchanged", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4887
5389
  oncopy: (ev: DragEvent) => any;
5390
+ addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4888
5391
  onrowsdelete: (ev: MSEventObj) => any;
5392
+ addEventListener(type: "rowsdelete", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4889
5393
  parentElement: HTMLElement;
4890
5394
  onrowenter: (ev: MSEventObj) => any;
5395
+ addEventListener(type: "rowenter", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
4891
5396
  onbeforeeditfocus: (ev: MSEventObj) => any;
4892
- canHaveChildren: bool;
5397
+ addEventListener(type: "beforeeditfocus", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
5398
+ canHaveChildren: boolean;
4893
5399
  sourceIndex: number;
4894
5400
  oncellchange: (ev: MSEventObj) => any;
4895
- dragDrop(): bool;
5401
+ addEventListener(type: "cellchange", listener: (ev: MSEventObj) => any, useCapture?: boolean): void;
5402
+ dragDrop(): boolean;
4896
5403
  releaseCapture(): void;
4897
5404
  addFilter(filter: Object): void;
4898
- setCapture(containerCapture?: bool): void;
4899
- removeBehavior(cookie: number): bool;
4900
- contains(child: HTMLElement): bool;
5405
+ setCapture(containerCapture?: boolean): void;
5406
+ removeBehavior(cookie: number): boolean;
5407
+ contains(child: HTMLElement): boolean;
4901
5408
  applyElement(apply: Element, where?: string): Element;
4902
5409
  replaceAdjacentText(where: string, newText: string): string;
4903
- mergeAttributes(source: HTMLElement, preserveIdentity?: bool): void;
5410
+ mergeAttributes(source: HTMLElement, preserveIdentity?: boolean): void;
4904
5411
  insertAdjacentElement(position: string, insertedElement: Element): Element;
4905
5412
  insertAdjacentText(where: string, text: string): void;
4906
5413
  getAdjacentText(where: string): string;
@@ -4908,6 +5415,7 @@ interface MSHTMLElementExtensions {
4908
5415
  setActive(): void;
4909
5416
  addBehavior(bstrUrl: string, factory?: any): number;
4910
5417
  clearAttributes(): void;
5418
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
4911
5419
  }
4912
5420
 
4913
5421
  interface HTMLTableColElement extends HTMLElement, MSHTMLTableColElementExtensions, HTMLTableAlignment, DOML2DeprecatedAlignmentStyle_HTMLTableColElement {
@@ -4921,102 +5429,155 @@ declare var HTMLTableColElement: {
4921
5429
 
4922
5430
  interface HTMLDocument extends MSEventAttachmentTarget, MSHTMLDocumentSelection, MSHTMLDocumentExtensions, MSNodeExtensions, MSResourceMetadata, MSHTMLDocumentEventExtensions, MSHTMLDocumentViewExtensions {
4923
5431
  ondragend: (ev: DragEvent) => any;
5432
+ addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4924
5433
  ondragover: (ev: DragEvent) => any;
5434
+ addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4925
5435
  onkeydown: (ev: KeyboardEvent) => any;
5436
+ addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
4926
5437
  bgColor: string;
4927
5438
  onkeyup: (ev: KeyboardEvent) => any;
5439
+ addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
4928
5440
  onreset: (ev: Event) => any;
5441
+ addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
4929
5442
  onmouseup: (ev: MouseEvent) => any;
5443
+ addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4930
5444
  ondragstart: (ev: DragEvent) => any;
5445
+ addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4931
5446
  scripts: HTMLCollection;
4932
5447
  ondrag: (ev: DragEvent) => any;
5448
+ addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4933
5449
  linkColor: string;
4934
5450
  ondragleave: (ev: DragEvent) => any;
5451
+ addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4935
5452
  onmouseover: (ev: MouseEvent) => any;
5453
+ addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4936
5454
  onpause: (ev: Event) => any;
5455
+ addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
4937
5456
  charset: string;
4938
5457
  vlinkColor: string;
4939
5458
  onmousedown: (ev: MouseEvent) => any;
5459
+ addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4940
5460
  onseeked: (ev: Event) => any;
5461
+ addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
4941
5462
  title: string;
4942
5463
  onclick: (ev: MouseEvent) => any;
5464
+ addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4943
5465
  onwaiting: (ev: Event) => any;
5466
+ addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
4944
5467
  defaultCharset: string;
4945
5468
  embeds: HTMLCollection;
4946
5469
  ondurationchange: (ev: Event) => any;
5470
+ addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
4947
5471
  all: HTMLCollection;
4948
5472
  applets: HTMLCollection;
4949
5473
  forms: HTMLCollection;
4950
5474
  onblur: (ev: FocusEvent) => any;
5475
+ addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
4951
5476
  dir: string;
4952
5477
  body: HTMLElement;
4953
5478
  designMode: string;
4954
5479
  onemptied: (ev: Event) => any;
5480
+ addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
4955
5481
  domain: string;
4956
5482
  onseeking: (ev: Event) => any;
5483
+ addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
4957
5484
  oncanplay: (ev: Event) => any;
5485
+ addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
4958
5486
  onstalled: (ev: Event) => any;
5487
+ addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
4959
5488
  onmousemove: (ev: MouseEvent) => any;
5489
+ addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4960
5490
  onratechange: (ev: Event) => any;
5491
+ addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
4961
5492
  onloadstart: (ev: Event) => any;
5493
+ addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
4962
5494
  ondragenter: (ev: DragEvent) => any;
5495
+ addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4963
5496
  onsubmit: (ev: Event) => any;
5497
+ addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
4964
5498
  onprogress: (ev: any) => any;
5499
+ addEventListener(type: "progress", listener: (ev: any) => any, useCapture?: boolean): void;
4965
5500
  ondblclick: (ev: MouseEvent) => any;
5501
+ addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4966
5502
  oncontextmenu: (ev: MouseEvent) => any;
5503
+ addEventListener(type: "contextmenu", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4967
5504
  activeElement: Element;
4968
5505
  onchange: (ev: Event) => any;
5506
+ addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
4969
5507
  onloadedmetadata: (ev: Event) => any;
5508
+ addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
4970
5509
  onerror: (ev: Event) => any;
5510
+ addEventListener(type: "error", listener: (ev: Event) => any, useCapture?: boolean): void;
4971
5511
  onplay: (ev: Event) => any;
5512
+ addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
4972
5513
  links: HTMLCollection;
4973
5514
  onplaying: (ev: Event) => any;
5515
+ addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
4974
5516
  URL: string;
4975
5517
  images: HTMLCollection;
4976
5518
  head: HTMLHeadElement;
4977
5519
  location: Location;
4978
5520
  cookie: string;
4979
5521
  oncanplaythrough: (ev: Event) => any;
5522
+ addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
4980
5523
  onabort: (ev: UIEvent) => any;
5524
+ addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
4981
5525
  characterSet: string;
4982
5526
  anchors: HTMLCollection;
4983
5527
  lastModified: string;
4984
5528
  onreadystatechange: (ev: Event) => any;
5529
+ addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
4985
5530
  onkeypress: (ev: KeyboardEvent) => any;
5531
+ addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
4986
5532
  onloadeddata: (ev: Event) => any;
5533
+ addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
4987
5534
  plugins: HTMLCollection;
4988
5535
  onsuspend: (ev: Event) => any;
5536
+ addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
4989
5537
  referrer: string;
4990
5538
  readyState: string;
4991
5539
  alinkColor: string;
4992
5540
  onfocus: (ev: FocusEvent) => any;
5541
+ addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
4993
5542
  fgColor: string;
4994
5543
  ontimeupdate: (ev: Event) => any;
5544
+ addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
4995
5545
  onselect: (ev: UIEvent) => any;
5546
+ addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
4996
5547
  ondrop: (ev: DragEvent) => any;
5548
+ addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
4997
5549
  onmouseout: (ev: MouseEvent) => any;
5550
+ addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
4998
5551
  onended: (ev: Event) => any;
5552
+ addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
4999
5553
  compatMode: string;
5000
5554
  onscroll: (ev: UIEvent) => any;
5555
+ addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
5001
5556
  onmousewheel: (ev: MouseWheelEvent) => any;
5557
+ addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
5002
5558
  onload: (ev: Event) => any;
5559
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
5003
5560
  onvolumechange: (ev: Event) => any;
5561
+ addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
5004
5562
  oninput: (ev: Event) => any;
5563
+ addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
5005
5564
  queryCommandValue(commandId: string): string;
5006
- queryCommandIndeterm(commandId: string): bool;
5007
- execCommand(commandId: string, showUI?: bool, value?: any): bool;
5565
+ queryCommandIndeterm(commandId: string): boolean;
5566
+ execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
5008
5567
  getElementsByName(elementName: string): NodeList;
5009
5568
  writeln(...content: string[]): void;
5010
- open(url?: string, name?: string, features?: string, replace?: bool): any;
5011
- queryCommandState(commandId: string): bool;
5569
+ open(url?: string, name?: string, features?: string, replace?: boolean): any;
5570
+ queryCommandState(commandId: string): boolean;
5012
5571
  close(): void;
5013
- hasFocus(): bool;
5572
+ hasFocus(): boolean;
5014
5573
  getElementsByClassName(classNames: string): NodeList;
5015
- queryCommandSupported(commandId: string): bool;
5574
+ queryCommandSupported(commandId: string): boolean;
5016
5575
  getSelection(): Selection;
5017
- queryCommandEnabled(commandId: string): bool;
5576
+ queryCommandEnabled(commandId: string): boolean;
5018
5577
  write(...content: string[]): void;
5019
5578
  queryCommandText(commandId: string): string;
5579
+ addEventListener(type: "DOMContentLoaded", listener: (ev: Event) => any, useCapture?: boolean): void;
5580
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
5020
5581
  }
5021
5582
 
5022
5583
  interface SVGException {
@@ -5153,7 +5714,6 @@ interface NamedNodeMap {
5153
5714
  [index: number]: Node;
5154
5715
  removeNamedItem(name: string): Node;
5155
5716
  getNamedItem(name: string): Node;
5156
- [name: string]: Node;
5157
5717
  setNamedItem(arg: Node): Node;
5158
5718
  getNamedItemNS(namespaceURI: string, localName: string): Node;
5159
5719
  setNamedItemNS(arg: Node): Node;
@@ -5215,20 +5775,25 @@ declare var SVGPathSegCurvetoCubicSmoothRel: {
5215
5775
  interface MSWindowExtensions {
5216
5776
  status: string;
5217
5777
  onmouseleave: (ev: MouseEvent) => any;
5778
+ addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5218
5779
  screenLeft: number;
5219
5780
  offscreenBuffering: any;
5220
5781
  maxConnectionsPerServer: number;
5221
5782
  onmouseenter: (ev: MouseEvent) => any;
5783
+ addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5222
5784
  clipboardData: DataTransfer;
5223
5785
  defaultStatus: string;
5224
5786
  clientInformation: Navigator;
5225
- closed: bool;
5787
+ closed: boolean;
5226
5788
  onhelp: (ev: Event) => any;
5789
+ addEventListener(type: "help", listener: (ev: Event) => any, useCapture?: boolean): void;
5227
5790
  external: BrowserPublic;
5228
5791
  event: MSEventObj;
5229
5792
  onfocusout: (ev: FocusEvent) => any;
5793
+ addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
5230
5794
  screenTop: number;
5231
5795
  onfocusin: (ev: FocusEvent) => any;
5796
+ addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
5232
5797
  showModelessDialog(url?: string, argument?: any, options?: any): Window;
5233
5798
  navigate(url: string): void;
5234
5799
  resizeBy(x?: number, y?: number): void;
@@ -5241,6 +5806,7 @@ interface MSWindowExtensions {
5241
5806
  moveTo(x?: number, y?: number): void;
5242
5807
  moveBy(x?: number, y?: number): void;
5243
5808
  showHelp(url: string, helpArg?: any, features?: string): void;
5809
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
5244
5810
  }
5245
5811
 
5246
5812
  interface ProcessingInstruction extends Node {
@@ -5277,7 +5843,7 @@ interface TextEvent extends UIEvent {
5277
5843
  inputMethod: number;
5278
5844
  data: string;
5279
5845
  locale: string;
5280
- initTextEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, dataArg: string, inputMethod: number, locale: string): void;
5846
+ initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, dataArg: string, inputMethod: number, locale: string): void;
5281
5847
  DOM_INPUT_METHOD_KEYBOARD: number;
5282
5848
  DOM_INPUT_METHOD_DROP: number;
5283
5849
  DOM_INPUT_METHOD_IME: number;
@@ -5343,7 +5909,7 @@ interface SVGAnimatedPathData {
5343
5909
  }
5344
5910
 
5345
5911
  interface Position {
5346
- timestamp: Date;
5912
+ timestamp: number;
5347
5913
  coords: Coordinates;
5348
5914
  }
5349
5915
  declare var Position: {
@@ -5396,7 +5962,7 @@ declare var HTMLSpanElement: {
5396
5962
  }
5397
5963
 
5398
5964
  interface HTMLHRElementDOML2Deprecated {
5399
- noShade: bool;
5965
+ noShade: boolean;
5400
5966
  }
5401
5967
 
5402
5968
  interface HTMLHeadElement extends HTMLElement {
@@ -5455,7 +6021,7 @@ declare var SVGZoomAndPan: {
5455
6021
  }
5456
6022
 
5457
6023
  interface MSEventExtensions {
5458
- cancelBubble: bool;
6024
+ cancelBubble: boolean;
5459
6025
  srcElement: Element;
5460
6026
  }
5461
6027
 
@@ -5464,22 +6030,22 @@ interface HTMLMediaElement extends HTMLElement {
5464
6030
  played: TimeRanges;
5465
6031
  currentSrc: string;
5466
6032
  readyState: string;
5467
- autobuffer: bool;
5468
- loop: bool;
5469
- ended: bool;
6033
+ autobuffer: boolean;
6034
+ loop: boolean;
6035
+ ended: boolean;
5470
6036
  buffered: TimeRanges;
5471
6037
  error: MediaError;
5472
6038
  seekable: TimeRanges;
5473
- autoplay: bool;
5474
- controls: bool;
6039
+ autoplay: boolean;
6040
+ controls: boolean;
5475
6041
  volume: number;
5476
6042
  src: string;
5477
6043
  playbackRate: number;
5478
6044
  duration: number;
5479
- muted: bool;
6045
+ muted: boolean;
5480
6046
  defaultPlaybackRate: number;
5481
- paused: bool;
5482
- seeking: bool;
6047
+ paused: boolean;
6048
+ seeking: boolean;
5483
6049
  currentTime: number;
5484
6050
  preload: string;
5485
6051
  networkState: number;
@@ -5533,7 +6099,7 @@ declare var MSMimeTypesCollection: {
5533
6099
  }
5534
6100
 
5535
6101
  interface StyleSheet {
5536
- disabled: bool;
6102
+ disabled: boolean;
5537
6103
  ownerNode: Node;
5538
6104
  parentStyleSheet: StyleSheet;
5539
6105
  href: string;
@@ -5586,6 +6152,12 @@ declare var NodeList: {
5586
6152
  new(): NodeList;
5587
6153
  }
5588
6154
 
6155
+ interface NodeListOf<TNode extends Node> {
6156
+ length: number;
6157
+ item(index: number): TNode;
6158
+ [index: number]: TNode;
6159
+ }
6160
+
5589
6161
  interface HTMLDTElement extends HTMLElement, DOML2DeprecatedWordWrapSuppression_HTMLDTElement {
5590
6162
  }
5591
6163
  declare var HTMLDTElement: {
@@ -5607,7 +6179,7 @@ interface StyleSheetPage {
5607
6179
  }
5608
6180
 
5609
6181
  interface DOML2DeprecatedWordWrapSuppression_HTMLDDElement {
5610
- noWrap: bool;
6182
+ noWrap: boolean;
5611
6183
  }
5612
6184
 
5613
6185
  interface MSHTMLTableRowElementExtensions {
@@ -5687,7 +6259,7 @@ interface MSHTMLOListElementExtensions {
5687
6259
  }
5688
6260
 
5689
6261
  interface DOML2DeprecatedWordWrapSuppression_HTMLDTElement {
5690
- noWrap: bool;
6262
+ noWrap: boolean;
5691
6263
  }
5692
6264
 
5693
6265
  interface ScreenView extends AbstractView {
@@ -5771,80 +6343,132 @@ declare var HTMLBGSoundElement: {
5771
6343
 
5772
6344
  interface HTMLElement extends Element, MSHTMLElementRangeExtensions, ElementCSSInlineStyle, MSEventAttachmentTarget, MSHTMLElementExtensions, MSNodeExtensions {
5773
6345
  ondragend: (ev: DragEvent) => any;
6346
+ addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5774
6347
  onkeydown: (ev: KeyboardEvent) => any;
6348
+ addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
5775
6349
  ondragover: (ev: DragEvent) => any;
6350
+ addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5776
6351
  onkeyup: (ev: KeyboardEvent) => any;
6352
+ addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
5777
6353
  offsetTop: number;
5778
6354
  onreset: (ev: Event) => any;
6355
+ addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
5779
6356
  onmouseup: (ev: MouseEvent) => any;
6357
+ addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5780
6358
  ondragstart: (ev: DragEvent) => any;
6359
+ addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5781
6360
  ondrag: (ev: DragEvent) => any;
6361
+ addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5782
6362
  innerHTML: string;
5783
6363
  onmouseover: (ev: MouseEvent) => any;
6364
+ addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5784
6365
  ondragleave: (ev: DragEvent) => any;
6366
+ addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5785
6367
  lang: string;
5786
6368
  onpause: (ev: Event) => any;
6369
+ addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
5787
6370
  className: string;
5788
6371
  onseeked: (ev: Event) => any;
6372
+ addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
5789
6373
  onmousedown: (ev: MouseEvent) => any;
6374
+ addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5790
6375
  title: string;
5791
6376
  onclick: (ev: MouseEvent) => any;
6377
+ addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5792
6378
  onwaiting: (ev: Event) => any;
6379
+ addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
5793
6380
  outerHTML: string;
5794
6381
  offsetLeft: number;
5795
6382
  ondurationchange: (ev: Event) => any;
6383
+ addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
5796
6384
  offsetHeight: number;
5797
6385
  dir: string;
5798
6386
  onblur: (ev: FocusEvent) => any;
6387
+ addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
5799
6388
  onemptied: (ev: Event) => any;
6389
+ addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
5800
6390
  onseeking: (ev: Event) => any;
6391
+ addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
5801
6392
  oncanplay: (ev: Event) => any;
6393
+ addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
5802
6394
  onstalled: (ev: Event) => any;
6395
+ addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
5803
6396
  onmousemove: (ev: MouseEvent) => any;
6397
+ addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5804
6398
  style: MSStyleCSSProperties;
5805
- isContentEditable: bool;
6399
+ isContentEditable: boolean;
5806
6400
  onratechange: (ev: Event) => any;
6401
+ addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
5807
6402
  onloadstart: (ev: Event) => any;
6403
+ addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
5808
6404
  ondragenter: (ev: DragEvent) => any;
6405
+ addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5809
6406
  contentEditable: string;
5810
6407
  onsubmit: (ev: Event) => any;
6408
+ addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
5811
6409
  tabIndex: number;
5812
6410
  onprogress: (ev: any) => any;
6411
+ addEventListener(type: "progress", listener: (ev: any) => any, useCapture?: boolean): void;
5813
6412
  ondblclick: (ev: MouseEvent) => any;
6413
+ addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5814
6414
  oncontextmenu: (ev: MouseEvent) => any;
6415
+ addEventListener(type: "contextmenu", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5815
6416
  onchange: (ev: Event) => any;
6417
+ addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
5816
6418
  onloadedmetadata: (ev: Event) => any;
6419
+ addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
5817
6420
  onerror: (ev: Event) => any;
6421
+ addEventListener(type: "error", listener: (ev: Event) => any, useCapture?: boolean): void;
5818
6422
  onplay: (ev: Event) => any;
6423
+ addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
5819
6424
  id: string;
5820
6425
  onplaying: (ev: Event) => any;
6426
+ addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
5821
6427
  oncanplaythrough: (ev: Event) => any;
6428
+ addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
5822
6429
  onabort: (ev: UIEvent) => any;
6430
+ addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
5823
6431
  onreadystatechange: (ev: Event) => any;
6432
+ addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
5824
6433
  onkeypress: (ev: KeyboardEvent) => any;
6434
+ addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
5825
6435
  offsetParent: Element;
5826
6436
  onloadeddata: (ev: Event) => any;
5827
- disabled: bool;
6437
+ addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
6438
+ disabled: boolean;
5828
6439
  onsuspend: (ev: Event) => any;
6440
+ addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
5829
6441
  accessKey: string;
5830
6442
  onfocus: (ev: FocusEvent) => any;
6443
+ addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
5831
6444
  ontimeupdate: (ev: Event) => any;
6445
+ addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
5832
6446
  onselect: (ev: UIEvent) => any;
6447
+ addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
5833
6448
  ondrop: (ev: DragEvent) => any;
6449
+ addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
5834
6450
  offsetWidth: number;
5835
6451
  onmouseout: (ev: MouseEvent) => any;
6452
+ addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
5836
6453
  onended: (ev: Event) => any;
6454
+ addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
5837
6455
  onscroll: (ev: UIEvent) => any;
6456
+ addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
5838
6457
  onmousewheel: (ev: MouseWheelEvent) => any;
6458
+ addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
5839
6459
  onvolumechange: (ev: Event) => any;
6460
+ addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
5840
6461
  onload: (ev: Event) => any;
6462
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
5841
6463
  oninput: (ev: Event) => any;
6464
+ addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
5842
6465
  click(): void;
5843
6466
  getElementsByClassName(classNames: string): NodeList;
5844
- scrollIntoView(top?: bool): void;
6467
+ scrollIntoView(top?: boolean): void;
5845
6468
  focus(): void;
5846
6469
  blur(): void;
5847
6470
  insertAdjacentHTML(where: string, html: string): void;
6471
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
5848
6472
  }
5849
6473
  declare var HTMLElement: {
5850
6474
  prototype: HTMLElement;
@@ -5884,7 +6508,7 @@ interface DOML2DeprecatedTextFlowControl_HTMLBlockElement {
5884
6508
  }
5885
6509
 
5886
6510
  interface PositionOptions {
5887
- enableHighAccuracy?: bool;
6511
+ enableHighAccuracy?: boolean;
5888
6512
  timeout?: number;
5889
6513
  maximumAge?: number;
5890
6514
  }
@@ -5901,7 +6525,7 @@ interface HTMLObjectElement extends HTMLElement, MSHTMLObjectElementExtensions,
5901
6525
  height: string;
5902
6526
  contentDocument: Document;
5903
6527
  codeBase: string;
5904
- declare: bool;
6528
+ declare: boolean;
5905
6529
  type: string;
5906
6530
  code: string;
5907
6531
  }
@@ -5924,7 +6548,7 @@ interface StorageEvent extends Event {
5924
6548
  url: string;
5925
6549
  storageArea: Storage;
5926
6550
  key: string;
5927
- initStorageEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void;
6551
+ initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void;
5928
6552
  }
5929
6553
  declare var StorageEvent: {
5930
6554
  prototype: StorageEvent;
@@ -6062,8 +6686,8 @@ interface MSHTMLIsIndexElementExtensions {
6062
6686
  }
6063
6687
 
6064
6688
  interface SVGAnimatedBoolean {
6065
- animVal: bool;
6066
- baseVal: bool;
6689
+ animVal: boolean;
6690
+ baseVal: boolean;
6067
6691
  }
6068
6692
  declare var SVGAnimatedBoolean: {
6069
6693
  prototype: SVGAnimatedBoolean;
@@ -6079,8 +6703,10 @@ declare var SVGSwitchElement: {
6079
6703
 
6080
6704
  interface MSHTMLIFrameElementExtensions extends DOML2DeprecatedMarginStyle_MSHTMLIFrameElementExtensions, DOML2DeprecatedBorderStyle_MSHTMLIFrameElementExtensions {
6081
6705
  onload: (ev: Event) => any;
6706
+ addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
6082
6707
  frameSpacing: any;
6083
- noResize: bool;
6708
+ noResize: boolean;
6709
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
6084
6710
  }
6085
6711
 
6086
6712
  interface SVGPreserveAspectRatio {
@@ -6121,7 +6747,7 @@ declare var SVGPreserveAspectRatio: {
6121
6747
  }
6122
6748
 
6123
6749
  interface Attr extends Node, MSAttrExtensions {
6124
- specified: bool;
6750
+ specified: boolean;
6125
6751
  ownerElement: Element;
6126
6752
  value: string;
6127
6753
  name: string;
@@ -6263,113 +6889,178 @@ declare var SVGMaskElement: {
6263
6889
  }
6264
6890
 
6265
6891
  declare var Audio: { new (src?: string): HTMLAudioElement; };
6266
- declare var Option: { new (text?: string, value?: string, defaultSelected?: bool, selected?: bool): HTMLOptionElement; };
6892
+ declare var Option: { new (text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; };
6267
6893
  declare var Image: { new (width?: number, height?: number): HTMLImageElement; };
6268
6894
 
6269
6895
  declare var ondragend: (ev: DragEvent) => any;
6896
+ declare function addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6270
6897
  declare var onkeydown: (ev: KeyboardEvent) => any;
6898
+ declare function addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
6271
6899
  declare var ondragover: (ev: DragEvent) => any;
6900
+ declare function addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6272
6901
  declare var onkeyup: (ev: KeyboardEvent) => any;
6902
+ declare function addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
6273
6903
  declare var onreset: (ev: Event) => any;
6904
+ declare function addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void;
6274
6905
  declare var onmouseup: (ev: MouseEvent) => any;
6906
+ declare function addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6275
6907
  declare var ondragstart: (ev: DragEvent) => any;
6908
+ declare function addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6276
6909
  declare var ondrag: (ev: DragEvent) => any;
6910
+ declare function addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6277
6911
  declare var onmouseover: (ev: MouseEvent) => any;
6912
+ declare function addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6278
6913
  declare var ondragleave: (ev: DragEvent) => any;
6914
+ declare function addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6279
6915
  declare var history: History;
6280
6916
  declare var name: string;
6281
6917
  declare var onafterprint: (ev: Event) => any;
6918
+ declare function addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void;
6282
6919
  declare var onpause: (ev: Event) => any;
6920
+ declare function addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
6283
6921
  declare var onbeforeprint: (ev: Event) => any;
6922
+ declare function addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void;
6284
6923
  declare var top: Window;
6285
6924
  declare var onmousedown: (ev: MouseEvent) => any;
6925
+ declare function addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6286
6926
  declare var onseeked: (ev: Event) => any;
6927
+ declare function addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void;
6287
6928
  declare var opener: Window;
6288
6929
  declare var onclick: (ev: MouseEvent) => any;
6930
+ declare function addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6289
6931
  declare var onwaiting: (ev: Event) => any;
6932
+ declare function addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
6290
6933
  declare var ononline: (ev: Event) => any;
6934
+ declare function addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void;
6291
6935
  declare var ondurationchange: (ev: Event) => any;
6936
+ declare function addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void;
6292
6937
  declare var frames: Window;
6293
6938
  declare var onblur: (ev: FocusEvent) => any;
6939
+ declare function addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
6294
6940
  declare var onemptied: (ev: Event) => any;
6941
+ declare function addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void;
6295
6942
  declare var onseeking: (ev: Event) => any;
6943
+ declare function addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void;
6296
6944
  declare var oncanplay: (ev: Event) => any;
6945
+ declare function addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void;
6297
6946
  declare var onstalled: (ev: Event) => any;
6947
+ declare function addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void;
6298
6948
  declare var onmousemove: (ev: MouseEvent) => any;
6949
+ declare function addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6299
6950
  declare var onoffline: (ev: Event) => any;
6951
+ declare function addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void;
6300
6952
  declare var length: number;
6301
6953
  declare var onbeforeunload: (ev: BeforeUnloadEvent) => any;
6954
+ declare function addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void;
6302
6955
  declare var onratechange: (ev: Event) => any;
6956
+ declare function addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void;
6303
6957
  declare var onstorage: (ev: StorageEvent) => any;
6958
+ declare function addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void;
6304
6959
  declare var onloadstart: (ev: Event) => any;
6960
+ declare function addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void;
6305
6961
  declare var ondragenter: (ev: DragEvent) => any;
6962
+ declare function addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6306
6963
  declare var onsubmit: (ev: Event) => any;
6964
+ declare function addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void;
6307
6965
  declare var self: Window;
6308
6966
  declare var onprogress: (ev: any) => any;
6967
+ declare function addEventListener(type: "progress", listener: (ev: any) => any, useCapture?: boolean): void;
6309
6968
  declare var ondblclick: (ev: MouseEvent) => any;
6969
+ declare function addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6310
6970
  declare var oncontextmenu: (ev: MouseEvent) => any;
6971
+ declare function addEventListener(type: "contextmenu", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6311
6972
  declare var onchange: (ev: Event) => any;
6973
+ declare function addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void;
6312
6974
  declare var onloadedmetadata: (ev: Event) => any;
6975
+ declare function addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void;
6313
6976
  declare var onplay: (ev: Event) => any;
6977
+ declare function addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void;
6314
6978
  declare var onerror: ErrorFunction;
6315
6979
  declare var onplaying: (ev: Event) => any;
6980
+ declare function addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void;
6316
6981
  declare var parent: Window;
6317
6982
  declare var location: Location;
6318
6983
  declare var oncanplaythrough: (ev: Event) => any;
6984
+ declare function addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void;
6319
6985
  declare var onabort: (ev: UIEvent) => any;
6986
+ declare function addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6320
6987
  declare var onreadystatechange: (ev: Event) => any;
6988
+ declare function addEventListener(type: "readystatechange", listener: (ev: Event) => any, useCapture?: boolean): void;
6321
6989
  declare var onkeypress: (ev: KeyboardEvent) => any;
6990
+ declare function addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void;
6322
6991
  declare var frameElement: Element;
6323
6992
  declare var onloadeddata: (ev: Event) => any;
6993
+ declare function addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void;
6324
6994
  declare var onsuspend: (ev: Event) => any;
6995
+ declare function addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void;
6325
6996
  declare var window: Window;
6326
6997
  declare var onfocus: (ev: FocusEvent) => any;
6998
+ declare function addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
6327
6999
  declare var onmessage: (ev: MessageEvent) => any;
7000
+ declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
6328
7001
  declare var ontimeupdate: (ev: Event) => any;
7002
+ declare function addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
6329
7003
  declare var onresize: (ev: UIEvent) => any;
7004
+ declare function addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6330
7005
  declare var navigator: Navigator;
6331
7006
  declare var onselect: (ev: UIEvent) => any;
7007
+ declare function addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6332
7008
  declare var ondrop: (ev: DragEvent) => any;
7009
+ declare function addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void;
6333
7010
  declare var onmouseout: (ev: MouseEvent) => any;
7011
+ declare function addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6334
7012
  declare var onended: (ev: Event) => any;
7013
+ declare function addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void;
6335
7014
  declare var onhashchange: (ev: Event) => any;
7015
+ declare function addEventListener(type: "hashchange", listener: (ev: Event) => any, useCapture?: boolean): void;
6336
7016
  declare var onunload: (ev: Event) => any;
7017
+ declare function addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void;
6337
7018
  declare var onscroll: (ev: UIEvent) => any;
7019
+ declare function addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void;
6338
7020
  declare var onmousewheel: (ev: MouseWheelEvent) => any;
7021
+ declare function addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void;
6339
7022
  declare var onload: (ev: Event) => any;
7023
+ declare function addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void;
6340
7024
  declare var onvolumechange: (ev: Event) => any;
7025
+ declare function addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
6341
7026
  declare var oninput: (ev: Event) => any;
7027
+ declare function addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void;
6342
7028
  declare function alert(message?: string): void;
6343
7029
  declare function focus(): void;
6344
7030
  declare function print(): void;
6345
7031
  declare function prompt(message?: string, defaul?: string): string;
6346
7032
  declare function toString(): string;
6347
- declare function open(url?: string, target?: string, features?: string, replace?: bool): Window;
7033
+ declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window;
6348
7034
  declare function close(): void;
6349
- declare function confirm(message?: string): bool;
7035
+ declare function confirm(message?: string): boolean;
6350
7036
  declare function postMessage(message: any, targetOrigin: string, ports?: any): void;
6351
7037
  declare function showModalDialog(url?: string, argument?: any, options?: any): any;
6352
7038
  declare function blur(): void;
6353
7039
  declare function getSelection(): Selection;
6354
7040
  declare function getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
6355
- declare function attachEvent(event: string, listener: EventListener): bool;
7041
+ declare function attachEvent(event: string, listener: EventListener): boolean;
6356
7042
  declare function detachEvent(event: string, listener: EventListener): void;
6357
7043
  declare var status: string;
6358
7044
  declare var onmouseleave: (ev: MouseEvent) => any;
7045
+ declare function addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6359
7046
  declare var screenLeft: number;
6360
7047
  declare var offscreenBuffering: any;
6361
7048
  declare var maxConnectionsPerServer: number;
6362
7049
  declare var onmouseenter: (ev: MouseEvent) => any;
7050
+ declare function addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void;
6363
7051
  declare var clipboardData: DataTransfer;
6364
7052
  declare var defaultStatus: string;
6365
7053
  declare var clientInformation: Navigator;
6366
- declare var closed: bool;
7054
+ declare var closed: boolean;
6367
7055
  declare var onhelp: (ev: Event) => any;
7056
+ declare function addEventListener(type: "help", listener: (ev: Event) => any, useCapture?: boolean): void;
6368
7057
  declare var external: BrowserPublic;
6369
7058
  declare var event: MSEventObj;
6370
7059
  declare var onfocusout: (ev: FocusEvent) => any;
7060
+ declare function addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
6371
7061
  declare var screenTop: number;
6372
7062
  declare var onfocusin: (ev: FocusEvent) => any;
7063
+ declare function addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void;
6373
7064
  declare function showModelessDialog(url?: string, argument?: any, options?: any): Window;
6374
7065
  declare function navigate(url: string): void;
6375
7066
  declare function resizeBy(x?: number, y?: number): void;
@@ -6397,9 +7088,9 @@ declare function scrollBy(x?: number, y?: number): void;
6397
7088
  declare function scrollTo(x?: number, y?: number): void;
6398
7089
  declare var styleMedia: StyleMedia;
6399
7090
  declare var document: Document;
6400
- declare function removeEventListener(type: string, listener: EventListener, useCapture?: bool): void;
6401
- declare function addEventListener(type: string, listener: EventListener, useCapture?: bool): void;
6402
- declare function dispatchEvent(evt: Event): bool;
7091
+ declare function removeEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7092
+ declare function addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7093
+ declare function dispatchEvent(evt: Event): boolean;
6403
7094
  declare var localStorage: Storage;
6404
7095
  declare var sessionStorage: Storage;
6405
7096
  declare function clearTimeout(handle: number): void;
@@ -6414,6 +7105,7 @@ declare function setInterval(expression: any, msec?: number, language?: any): nu
6414
7105
 
6415
7106
  interface HTMLBodyElement {
6416
7107
  onpopstate: (ev: PopStateEvent) => any;
7108
+ addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void;
6417
7109
  }
6418
7110
 
6419
7111
  interface MSGestureEvent extends UIEvent {
@@ -6434,7 +7126,7 @@ interface MSGestureEvent extends UIEvent {
6434
7126
  scale: number;
6435
7127
  gestureObject: any;
6436
7128
  clientX: number;
6437
- initGestureEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
7129
+ initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
6438
7130
  MSGESTURE_FLAG_BEGIN: number;
6439
7131
  MSGESTURE_FLAG_END: number;
6440
7132
  MSGESTURE_FLAG_CANCEL: number;
@@ -6460,10 +7152,10 @@ interface HTMLInputElement {
6460
7152
  files: FileList;
6461
7153
  max: string;
6462
7154
  formTarget: string;
6463
- willValidate: bool;
7155
+ willValidate: boolean;
6464
7156
  step: string;
6465
- autofocus: bool;
6466
- required: bool;
7157
+ autofocus: boolean;
7158
+ required: boolean;
6467
7159
  formEnctype: string;
6468
7160
  valueAsNumber: number;
6469
7161
  placeholder: string;
@@ -6475,8 +7167,8 @@ interface HTMLInputElement {
6475
7167
  pattern: string;
6476
7168
  validity: ValidityState;
6477
7169
  formNoValidate: string;
6478
- multiple: bool;
6479
- checkValidity(): bool;
7170
+ multiple: boolean;
7171
+ checkValidity(): boolean;
6480
7172
  stepDown(n?: number): void;
6481
7173
  stepUp(n?: number): void;
6482
7174
  setCustomValidity(error: string): void;
@@ -6487,7 +7179,7 @@ interface ErrorEvent extends Event {
6487
7179
  filename: string;
6488
7180
  lineno: number;
6489
7181
  message: string;
6490
- initErrorEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, messageArg: string, filenameArg: string, linenoArg: number): void;
7182
+ initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void;
6491
7183
  }
6492
7184
  declare var ErrorEvent: {
6493
7185
  prototype: ErrorEvent;
@@ -6536,25 +7228,42 @@ declare var SVGFEFloodElement: {
6536
7228
  interface MSElementExtensions {
6537
7229
  msRegionOverflow: string;
6538
7230
  onmspointerdown: (ev: any) => any;
7231
+ addEventListener(type: "mspointerdown", listener: (ev: any) => any, useCapture?: boolean): void;
6539
7232
  onmsgotpointercapture: (ev: any) => any;
7233
+ addEventListener(type: "msgotpointercapture", listener: (ev: any) => any, useCapture?: boolean): void;
6540
7234
  onmsgesturedoubletap: (ev: any) => any;
7235
+ addEventListener(type: "msgesturedoubletap", listener: (ev: any) => any, useCapture?: boolean): void;
6541
7236
  onmspointerhover: (ev: any) => any;
7237
+ addEventListener(type: "mspointerhover", listener: (ev: any) => any, useCapture?: boolean): void;
6542
7238
  onmsgesturehold: (ev: any) => any;
7239
+ addEventListener(type: "msgesturehold", listener: (ev: any) => any, useCapture?: boolean): void;
6543
7240
  onmspointermove: (ev: any) => any;
7241
+ addEventListener(type: "mspointermove", listener: (ev: any) => any, useCapture?: boolean): void;
6544
7242
  onmsgesturechange: (ev: any) => any;
7243
+ addEventListener(type: "msgesturechange", listener: (ev: any) => any, useCapture?: boolean): void;
6545
7244
  onmsgesturestart: (ev: any) => any;
7245
+ addEventListener(type: "msgesturestart", listener: (ev: any) => any, useCapture?: boolean): void;
6546
7246
  onmspointercancel: (ev: any) => any;
7247
+ addEventListener(type: "mspointercancel", listener: (ev: any) => any, useCapture?: boolean): void;
6547
7248
  onmsgestureend: (ev: any) => any;
7249
+ addEventListener(type: "msgestureend", listener: (ev: any) => any, useCapture?: boolean): void;
6548
7250
  onmsgesturetap: (ev: any) => any;
7251
+ addEventListener(type: "msgesturetap", listener: (ev: any) => any, useCapture?: boolean): void;
6549
7252
  onmspointerout: (ev: any) => any;
7253
+ addEventListener(type: "mspointerout", listener: (ev: any) => any, useCapture?: boolean): void;
6550
7254
  onmsinertiastart: (ev: any) => any;
7255
+ addEventListener(type: "msinertiastart", listener: (ev: any) => any, useCapture?: boolean): void;
6551
7256
  onmslostpointercapture: (ev: any) => any;
7257
+ addEventListener(type: "mslostpointercapture", listener: (ev: any) => any, useCapture?: boolean): void;
6552
7258
  onmspointerover: (ev: any) => any;
7259
+ addEventListener(type: "mspointerover", listener: (ev: any) => any, useCapture?: boolean): void;
6553
7260
  msContentZoomFactor: number;
6554
7261
  onmspointerup: (ev: any) => any;
7262
+ addEventListener(type: "mspointerup", listener: (ev: any) => any, useCapture?: boolean): void;
6555
7263
  msGetRegionContent(): MSRangeCollection;
6556
7264
  msReleasePointerCapture(pointerId: number): void;
6557
7265
  msSetPointerCapture(pointerId: number): void;
7266
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
6558
7267
  }
6559
7268
  declare var MSElementExtensions: {
6560
7269
  prototype: MSElementExtensions;
@@ -6577,14 +7286,17 @@ declare var MSGesture: {
6577
7286
 
6578
7287
  interface TextTrackCue extends EventTarget {
6579
7288
  onenter: (ev: Event) => any;
7289
+ addEventListener(type: "enter", listener: (ev: Event) => any, useCapture?: boolean): void;
6580
7290
  track: TextTrack;
6581
7291
  endTime: number;
6582
7292
  text: string;
6583
- pauseOnExit: bool;
7293
+ pauseOnExit: boolean;
6584
7294
  id: string;
6585
7295
  startTime: number;
6586
7296
  onexit: (ev: Event) => any;
7297
+ addEventListener(type: "exit", listener: (ev: Event) => any, useCapture?: boolean): void;
6587
7298
  getCueAsHTML(): DocumentFragment;
7299
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
6588
7300
  }
6589
7301
  declare var TextTrackCue: {
6590
7302
  prototype: TextTrackCue;
@@ -6592,7 +7304,7 @@ declare var TextTrackCue: {
6592
7304
  }
6593
7305
 
6594
7306
  interface MSHTMLDocumentViewExtensions {
6595
- msCSSOMElementFloatMetrics: bool;
7307
+ msCSSOMElementFloatMetrics: boolean;
6596
7308
  msElementsFromPoint(x: number, y: number): NodeList;
6597
7309
  msElementsFromRect(left: number, top: number, width: number, height: number): NodeList;
6598
7310
  }
@@ -6630,9 +7342,9 @@ interface CSSFlexibleBoxProperties {
6630
7342
 
6631
7343
  interface DOMTokenList {
6632
7344
  length: number;
6633
- contains(token: string): bool;
7345
+ contains(token: string): boolean;
6634
7346
  remove(token: string): void;
6635
- toggle(token: string): bool;
7347
+ toggle(token: string): boolean;
6636
7348
  add(token: string): void;
6637
7349
  item(index: number): string;
6638
7350
  [index: number]: string;
@@ -6720,7 +7432,7 @@ interface Navigator extends MSFileSaver {
6720
7432
  interface TransitionEvent extends Event {
6721
7433
  propertyName: string;
6722
7434
  elapsedTime: number;
6723
- initTransitionEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, propertyNameArg: string, elapsedTimeArg: number): void;
7435
+ initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void;
6724
7436
  }
6725
7437
  declare var TransitionEvent: {
6726
7438
  prototype: TransitionEvent;
@@ -6728,7 +7440,7 @@ declare var TransitionEvent: {
6728
7440
  }
6729
7441
 
6730
7442
  interface MediaQueryList {
6731
- matches: bool;
7443
+ matches: boolean;
6732
7444
  media: string;
6733
7445
  addListener(listener: MediaQueryListListener): void;
6734
7446
  removeListener(listener: MediaQueryListListener): void;
@@ -6763,10 +7475,10 @@ interface CSSFontsProperties {
6763
7475
  }
6764
7476
 
6765
7477
  interface CloseEvent extends Event {
6766
- wasClean: bool;
7478
+ wasClean: boolean;
6767
7479
  reason: string;
6768
7480
  code: number;
6769
- initCloseEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, wasCleanArg: bool, codeArg: number, reasonArg: string): void;
7481
+ initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;
6770
7482
  }
6771
7483
  declare var CloseEvent: {
6772
7484
  prototype: CloseEvent;
@@ -6778,10 +7490,14 @@ interface WebSocket extends EventTarget {
6778
7490
  readyState: number;
6779
7491
  bufferedAmount: number;
6780
7492
  onopen: (ev: Event) => any;
7493
+ addEventListener(type: "open", listener: (ev: Event) => any, useCapture?: boolean): void;
6781
7494
  extensions: string;
6782
7495
  onmessage: (ev: any) => any;
7496
+ addEventListener(type: "message", listener: (ev: any) => any, useCapture?: boolean): void;
6783
7497
  onclose: (ev: CloseEvent) => any;
7498
+ addEventListener(type: "close", listener: (ev: CloseEvent) => any, useCapture?: boolean): void;
6784
7499
  onerror: (ev: ErrorEvent) => any;
7500
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
6785
7501
  binaryType: string;
6786
7502
  url: string;
6787
7503
  close(code?: number, reason?: string): void;
@@ -6790,6 +7506,7 @@ interface WebSocket extends EventTarget {
6790
7506
  CLOSING: number;
6791
7507
  CONNECTING: number;
6792
7508
  CLOSED: number;
7509
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
6793
7510
  }
6794
7511
  declare var WebSocket: {
6795
7512
  prototype: WebSocket;
@@ -6804,9 +7521,9 @@ declare var WebSocket: {
6804
7521
 
6805
7522
  interface ProgressEvent extends Event {
6806
7523
  loaded: number;
6807
- lengthComputable: bool;
7524
+ lengthComputable: boolean;
6808
7525
  total: number;
6809
- initProgressEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, lengthComputableArg: bool, loadedArg: number, totalArg: number): void;
7526
+ initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void;
6810
7527
  }
6811
7528
  declare var ProgressEvent: {
6812
7529
  prototype: ProgressEvent;
@@ -6831,7 +7548,7 @@ interface IDBObjectStore {
6831
7548
  deleteIndex(indexName: string): void;
6832
7549
  index(name: string): IDBIndex;
6833
7550
  get(key: any): IDBRequest;
6834
- delet(key: any): IDBRequest;
7551
+ delete(key: any): IDBRequest;
6835
7552
  }
6836
7553
  declare var IDBObjectStore: {
6837
7554
  prototype: IDBObjectStore;
@@ -6839,7 +7556,7 @@ declare var IDBObjectStore: {
6839
7556
  }
6840
7557
 
6841
7558
  interface ObjectURLOptions {
6842
- oneTimeOnly?: bool;
7559
+ oneTimeOnly?: boolean;
6843
7560
  }
6844
7561
 
6845
7562
  interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
@@ -6855,21 +7572,37 @@ declare var SVGFEGaussianBlurElement: {
6855
7572
 
6856
7573
  interface MSHTMLDocumentExtensions {
6857
7574
  onmspointerdown: (ev: any) => any;
7575
+ addEventListener(type: "mspointerdown", listener: (ev: any) => any, useCapture?: boolean): void;
6858
7576
  onmspointercancel: (ev: any) => any;
7577
+ addEventListener(type: "mspointercancel", listener: (ev: any) => any, useCapture?: boolean): void;
6859
7578
  onmsgesturedoubletap: (ev: any) => any;
7579
+ addEventListener(type: "msgesturedoubletap", listener: (ev: any) => any, useCapture?: boolean): void;
6860
7580
  onmsgesturetap: (ev: any) => any;
7581
+ addEventListener(type: "msgesturetap", listener: (ev: any) => any, useCapture?: boolean): void;
6861
7582
  onmsgestureend: (ev: any) => any;
7583
+ addEventListener(type: "msgestureend", listener: (ev: any) => any, useCapture?: boolean): void;
6862
7584
  onmspointerout: (ev: any) => any;
7585
+ addEventListener(type: "mspointerout", listener: (ev: any) => any, useCapture?: boolean): void;
6863
7586
  onmsmanipulationstatechanged: (ev: any) => any;
7587
+ addEventListener(type: "msmanipulationstatechanged", listener: (ev: any) => any, useCapture?: boolean): void;
6864
7588
  onmsinertiastart: (ev: any) => any;
7589
+ addEventListener(type: "msinertiastart", listener: (ev: any) => any, useCapture?: boolean): void;
6865
7590
  onmspointerhover: (ev: any) => any;
7591
+ addEventListener(type: "mspointerhover", listener: (ev: any) => any, useCapture?: boolean): void;
6866
7592
  onmscontentzoom: (ev: any) => any;
7593
+ addEventListener(type: "mscontentzoom", listener: (ev: any) => any, useCapture?: boolean): void;
6867
7594
  onmsgesturehold: (ev: any) => any;
7595
+ addEventListener(type: "msgesturehold", listener: (ev: any) => any, useCapture?: boolean): void;
6868
7596
  onmspointermove: (ev: any) => any;
7597
+ addEventListener(type: "mspointermove", listener: (ev: any) => any, useCapture?: boolean): void;
6869
7598
  onmspointerover: (ev: any) => any;
7599
+ addEventListener(type: "mspointerover", listener: (ev: any) => any, useCapture?: boolean): void;
6870
7600
  onmsgesturechange: (ev: any) => any;
7601
+ addEventListener(type: "msgesturechange", listener: (ev: any) => any, useCapture?: boolean): void;
6871
7602
  onmsgesturestart: (ev: any) => any;
7603
+ addEventListener(type: "msgesturestart", listener: (ev: any) => any, useCapture?: boolean): void;
6872
7604
  onmspointerup: (ev: any) => any;
7605
+ addEventListener(type: "mspointerup", listener: (ev: any) => any, useCapture?: boolean): void;
6873
7606
  }
6874
7607
  declare var MSHTMLDocumentExtensions: {
6875
7608
  prototype: MSHTMLDocumentExtensions;
@@ -6898,7 +7631,7 @@ declare var IDBVersionChangeEvent: {
6898
7631
  }
6899
7632
 
6900
7633
  interface IDBIndex {
6901
- unique: bool;
7634
+ unique: boolean;
6902
7635
  name: string;
6903
7636
  keyPath: string;
6904
7637
  objectStore: IDBObjectStore;
@@ -6929,8 +7662,8 @@ interface IDBCursor {
6929
7662
  key: any;
6930
7663
  primaryKey: any;
6931
7664
  advance(count: number): void;
6932
- delet(): IDBRequest;
6933
- continu(key?: any): void;
7665
+ delete(): IDBRequest;
7666
+ continue(key?: any): void;
6934
7667
  update(value: any): IDBRequest;
6935
7668
  }
6936
7669
  declare var IDBCursor: {
@@ -7001,24 +7734,32 @@ declare var IDBCursorWithValue: {
7001
7734
 
7002
7735
  interface HTMLTextAreaElement {
7003
7736
  validationMessage: string;
7004
- autofocus: bool;
7737
+ autofocus: boolean;
7005
7738
  validity: ValidityState;
7006
- required: bool;
7739
+ required: boolean;
7007
7740
  maxLength: number;
7008
- willValidate: bool;
7741
+ willValidate: boolean;
7009
7742
  placeholder: string;
7010
- checkValidity(): bool;
7743
+ checkValidity(): boolean;
7011
7744
  setCustomValidity(error: string): void;
7012
7745
  }
7013
7746
 
7014
7747
  interface XMLHttpRequestEventTarget extends EventTarget {
7015
7748
  onprogress: (ev: ProgressEvent) => any;
7749
+ addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
7016
7750
  onerror: (ev: ErrorEvent) => any;
7751
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7017
7752
  onload: (ev: any) => any;
7753
+ addEventListener(type: "load", listener: (ev: any) => any, useCapture?: boolean): void;
7018
7754
  ontimeout: (ev: any) => any;
7755
+ addEventListener(type: "timeout", listener: (ev: any) => any, useCapture?: boolean): void;
7019
7756
  onabort: (ev: any) => any;
7757
+ addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
7020
7758
  onloadstart: (ev: any) => any;
7759
+ addEventListener(type: "loadstart", listener: (ev: any) => any, useCapture?: boolean): void;
7021
7760
  onloadend: (ev: ProgressEvent) => any;
7761
+ addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
7762
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7022
7763
  }
7023
7764
  declare var XMLHttpRequestEventTarget: {
7024
7765
  prototype: XMLHttpRequestEventTarget;
@@ -7033,10 +7774,13 @@ interface IDBEnvironment {
7033
7774
  interface AudioTrackList extends EventTarget {
7034
7775
  length: number;
7035
7776
  onchange: (ev: any) => any;
7777
+ addEventListener(type: "change", listener: (ev: any) => any, useCapture?: boolean): void;
7036
7778
  onaddtrack: (ev: TrackEvent) => any;
7779
+ addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void;
7037
7780
  getTrackById(id: string): AudioTrack;
7038
7781
  item(index: number): AudioTrack;
7039
7782
  [index: number]: AudioTrack;
7783
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7040
7784
  }
7041
7785
  declare var AudioTrackList: {
7042
7786
  prototype: AudioTrackList;
@@ -7045,17 +7789,24 @@ declare var AudioTrackList: {
7045
7789
 
7046
7790
  interface MSBaseReader extends EventTarget {
7047
7791
  onprogress: (ev: ProgressEvent) => any;
7792
+ addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
7048
7793
  readyState: number;
7049
7794
  onabort: (ev: any) => any;
7795
+ addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
7050
7796
  onloadend: (ev: ProgressEvent) => any;
7797
+ addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
7051
7798
  onerror: (ev: ErrorEvent) => any;
7799
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7052
7800
  onload: (ev: any) => any;
7801
+ addEventListener(type: "load", listener: (ev: any) => any, useCapture?: boolean): void;
7053
7802
  onloadstart: (ev: any) => any;
7803
+ addEventListener(type: "loadstart", listener: (ev: any) => any, useCapture?: boolean): void;
7054
7804
  result: any;
7055
7805
  abort(): void;
7056
7806
  LOADING: number;
7057
7807
  EMPTY: number;
7058
7808
  DONE: number;
7809
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7059
7810
  }
7060
7811
 
7061
7812
  interface History {
@@ -7091,11 +7842,11 @@ declare var SVGFEMorphologyElement: {
7091
7842
 
7092
7843
  interface HTMLSelectElement {
7093
7844
  validationMessage: string;
7094
- autofocus: bool;
7845
+ autofocus: boolean;
7095
7846
  validity: ValidityState;
7096
- required: bool;
7097
- willValidate: bool;
7098
- checkValidity(): bool;
7847
+ required: boolean;
7848
+ willValidate: boolean;
7849
+ checkValidity(): boolean;
7099
7850
  setCustomValidity(error: string): void;
7100
7851
  }
7101
7852
 
@@ -7173,7 +7924,7 @@ interface MSCSSContentZoomProperties {
7173
7924
  interface AnimationEvent extends Event {
7174
7925
  animationName: string;
7175
7926
  elapsedTime: number;
7176
- initAnimationEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, animationNameArg: string, elapsedTimeArg: number): void;
7927
+ initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void;
7177
7928
  }
7178
7929
  declare var AnimationEvent: {
7179
7930
  prototype: AnimationEvent;
@@ -7218,7 +7969,9 @@ declare var MSRangeCollection: {
7218
7969
 
7219
7970
  interface MSHTMLElementExtensions {
7220
7971
  onmscontentzoom: (ev: any) => any;
7972
+ addEventListener(type: "mscontentzoom", listener: (ev: any) => any, useCapture?: boolean): void;
7221
7973
  onmsmanipulationstatechanged: (ev: any) => any;
7974
+ addEventListener(type: "msmanipulationstatechanged", listener: (ev: any) => any, useCapture?: boolean): void;
7222
7975
  }
7223
7976
  declare var MSHTMLElementExtensions: {
7224
7977
  prototype: MSHTMLElementExtensions;
@@ -7258,17 +8011,17 @@ declare var SVGFEFuncBElement: {
7258
8011
 
7259
8012
  interface IDBKeyRange {
7260
8013
  upper: any;
7261
- upperOpen: bool;
8014
+ upperOpen: boolean;
7262
8015
  lower: any;
7263
- lowerOpen: bool;
7264
- bound(lower: any, upper: any, lowerOpen?: bool, upperOpen?: bool): IDBKeyRange;
8016
+ lowerOpen: boolean;
8017
+ bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
7265
8018
  only(value: any): IDBKeyRange;
7266
- lowerBound(bound: any, open?: bool): IDBKeyRange;
7267
- upperBound(bound: any, open?: bool): IDBKeyRange;
8019
+ lowerBound(bound: any, open?: boolean): IDBKeyRange;
8020
+ upperBound(bound: any, open?: boolean): IDBKeyRange;
7268
8021
  }
7269
8022
  declare var IDBKeyRange: {
7270
8023
  prototype: IDBKeyRange;
7271
- new(): IDBKeyRange;
8024
+ new (): IDBKeyRange;
7272
8025
  }
7273
8026
 
7274
8027
  interface WindowConsole {
@@ -7290,13 +8043,17 @@ declare var SVG1_1Properties: {
7290
8043
 
7291
8044
  interface IDBTransaction extends EventTarget {
7292
8045
  oncomplete: (ev: Event) => any;
8046
+ addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void;
7293
8047
  db: IDBDatabase;
7294
8048
  mode: string;
7295
8049
  error: DOMError;
7296
8050
  onerror: (ev: ErrorEvent) => any;
8051
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7297
8052
  onabort: (ev: any) => any;
8053
+ addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
7298
8054
  abort(): void;
7299
8055
  objectStore(name: string): IDBObjectStore;
8056
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7300
8057
  }
7301
8058
  declare var IDBTransaction: {
7302
8059
  prototype: IDBTransaction;
@@ -7305,20 +8062,34 @@ declare var IDBTransaction: {
7305
8062
 
7306
8063
  interface MSWindowExtensions {
7307
8064
  onmspointerdown: (ev: any) => any;
8065
+ addEventListener(type: "mspointerdown", listener: (ev: any) => any, useCapture?: boolean): void;
7308
8066
  onmspointercancel: (ev: any) => any;
8067
+ addEventListener(type: "mspointercancel", listener: (ev: any) => any, useCapture?: boolean): void;
7309
8068
  onmsgesturedoubletap: (ev: any) => any;
8069
+ addEventListener(type: "msgesturedoubletap", listener: (ev: any) => any, useCapture?: boolean): void;
7310
8070
  onmsgestureend: (ev: any) => any;
8071
+ addEventListener(type: "msgestureend", listener: (ev: any) => any, useCapture?: boolean): void;
7311
8072
  onmsgesturetap: (ev: any) => any;
8073
+ addEventListener(type: "msgesturetap", listener: (ev: any) => any, useCapture?: boolean): void;
7312
8074
  onmspointerout: (ev: any) => any;
8075
+ addEventListener(type: "mspointerout", listener: (ev: any) => any, useCapture?: boolean): void;
7313
8076
  onmspointerhover: (ev: any) => any;
8077
+ addEventListener(type: "mspointerhover", listener: (ev: any) => any, useCapture?: boolean): void;
7314
8078
  onmsinertiastart: (ev: any) => any;
8079
+ addEventListener(type: "msinertiastart", listener: (ev: any) => any, useCapture?: boolean): void;
7315
8080
  onmspointermove: (ev: any) => any;
8081
+ addEventListener(type: "mspointermove", listener: (ev: any) => any, useCapture?: boolean): void;
7316
8082
  onmsgesturehold: (ev: any) => any;
8083
+ addEventListener(type: "msgesturehold", listener: (ev: any) => any, useCapture?: boolean): void;
7317
8084
  onmspointerover: (ev: any) => any;
8085
+ addEventListener(type: "mspointerover", listener: (ev: any) => any, useCapture?: boolean): void;
7318
8086
  onmsgesturechange: (ev: any) => any;
8087
+ addEventListener(type: "msgesturechange", listener: (ev: any) => any, useCapture?: boolean): void;
7319
8088
  onmsgesturestart: (ev: any) => any;
8089
+ addEventListener(type: "msgesturestart", listener: (ev: any) => any, useCapture?: boolean): void;
7320
8090
  onmspointerup: (ev: any) => any;
7321
- msIsStaticHTML(html: string): bool;
8091
+ addEventListener(type: "mspointerup", listener: (ev: any) => any, useCapture?: boolean): void;
8092
+ msIsStaticHTML(html: string): boolean;
7322
8093
  }
7323
8094
  declare var MSWindowExtensions: {
7324
8095
  prototype: MSWindowExtensions;
@@ -7330,7 +8101,7 @@ interface AudioTrack {
7330
8101
  language: string;
7331
8102
  id: string;
7332
8103
  label: string;
7333
- enabled: bool;
8104
+ enabled: boolean;
7334
8105
  }
7335
8106
  declare var AudioTrack: {
7336
8107
  prototype: AudioTrack;
@@ -7407,6 +8178,7 @@ interface MSCSSTouchManipulationProperties {
7407
8178
 
7408
8179
  interface Window extends WindowAnimationTiming, WindowBase64, IDBEnvironment, WindowConsole {
7409
8180
  onpopstate: (ev: PopStateEvent) => any;
8181
+ addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void;
7410
8182
  applicationCache: ApplicationCache;
7411
8183
  matchMedia(mediaQuery: string): MediaQueryList;
7412
8184
  msMatchMedia(mediaQuery: string): MediaQueryList;
@@ -7486,21 +8258,21 @@ declare var SVGFEColorMatrixElement: {
7486
8258
  interface Console {
7487
8259
  info(): void;
7488
8260
  info(message: any, ...optionalParams: any[]): void;
7489
- profile(reportName?: string): bool;
8261
+ profile(reportName?: string): boolean;
7490
8262
  assert(): void;
7491
- assert(test: bool): void;
7492
- assert(test: bool, message: any, ...optionalParams: any[]): void;
7493
- msIsIndependentlyComposed(element: Element): bool;
7494
- clear(): bool;
7495
- dir(): bool;
7496
- dir(value: any, ...optionalParams: any[]): bool;
8263
+ assert(test: boolean): void;
8264
+ assert(test: boolean, message: any, ...optionalParams: any[]): void;
8265
+ msIsIndependentlyComposed(element: Element): boolean;
8266
+ clear(): boolean;
8267
+ dir(): boolean;
8268
+ dir(value: any, ...optionalParams: any[]): boolean;
7497
8269
  warn(): void;
7498
8270
  warn(message: any, ...optionalParams: any[]): void;
7499
8271
  error(): void;
7500
8272
  error(message: any, ...optionalParams: any[]): void;
7501
8273
  log(): void;
7502
8274
  log(message: any, ...optionalParams: any[]): void;
7503
- profileEnd(): bool;
8275
+ profileEnd(): boolean;
7504
8276
  }
7505
8277
  declare var Console: {
7506
8278
  prototype: Console;
@@ -7523,10 +8295,10 @@ declare var SVGFESpotLightElement: {
7523
8295
  }
7524
8296
 
7525
8297
  interface DocumentVisibility {
7526
- msHidden: bool;
8298
+ msHidden: boolean;
7527
8299
  msVisibilityState: string;
7528
8300
  visibilityState: string;
7529
- hidden: bool;
8301
+ hidden: boolean;
7530
8302
  }
7531
8303
 
7532
8304
  interface WindowBase64 {
@@ -7539,11 +8311,14 @@ interface IDBDatabase extends EventTarget {
7539
8311
  name: string;
7540
8312
  objectStoreNames: DOMStringList;
7541
8313
  onerror: (ev: ErrorEvent) => any;
8314
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7542
8315
  onabort: (ev: any) => any;
8316
+ addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
7543
8317
  createObjectStore(name: string, optionalParameters?: any): IDBObjectStore;
7544
8318
  close(): void;
7545
8319
  transaction(storeNames: any, mode?: string): IDBTransaction;
7546
8320
  deleteObjectStore(name: string): void;
8321
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7547
8322
  }
7548
8323
  declare var IDBDatabase: {
7549
8324
  prototype: IDBDatabase;
@@ -7559,7 +8334,7 @@ declare var MSProtocolsCollection: {
7559
8334
 
7560
8335
  interface DOMStringList {
7561
8336
  length: number;
7562
- contains(str: string): bool;
8337
+ contains(str: string): boolean;
7563
8338
  item(index: number): string;
7564
8339
  [index: number]: string;
7565
8340
  }
@@ -7586,7 +8361,10 @@ interface CSSMultiColumnProperties {
7586
8361
 
7587
8362
  interface IDBOpenDBRequest extends IDBRequest {
7588
8363
  onupgradeneeded: (ev: IDBVersionChangeEvent) => any;
8364
+ addEventListener(type: "upgradeneeded", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void;
7589
8365
  onblocked: (ev: Event) => any;
8366
+ addEventListener(type: "blocked", listener: (ev: Event) => any, useCapture?: boolean): void;
8367
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7590
8368
  }
7591
8369
  declare var IDBOpenDBRequest: {
7592
8370
  prototype: IDBOpenDBRequest;
@@ -7596,14 +8374,14 @@ declare var IDBOpenDBRequest: {
7596
8374
  interface HTMLButtonElement {
7597
8375
  validationMessage: string;
7598
8376
  formTarget: string;
7599
- willValidate: bool;
8377
+ willValidate: boolean;
7600
8378
  formAction: string;
7601
- autofocus: bool;
8379
+ autofocus: boolean;
7602
8380
  validity: ValidityState;
7603
8381
  formNoValidate: string;
7604
8382
  formEnctype: string;
7605
8383
  formMethod: string;
7606
- checkValidity(): bool;
8384
+ checkValidity(): boolean;
7607
8385
  setCustomValidity(error: string): void;
7608
8386
  }
7609
8387
 
@@ -7630,8 +8408,8 @@ declare var SVGFEOffsetElement: {
7630
8408
 
7631
8409
  interface HTMLFormElement {
7632
8410
  autocomplete: string;
7633
- noValidate: bool;
7634
- checkValidity(): bool;
8411
+ noValidate: boolean;
8412
+ checkValidity(): boolean;
7635
8413
  }
7636
8414
 
7637
8415
  interface MSUnsafeFunctionCallback {
@@ -7646,7 +8424,7 @@ interface MessageEvent extends Event {
7646
8424
  }
7647
8425
 
7648
8426
  interface HTMLScriptElement {
7649
- async: bool;
8427
+ async: boolean;
7650
8428
  }
7651
8429
 
7652
8430
  interface HTMLMediaElement extends MSHTMLMediaElementExtensions {
@@ -7661,9 +8439,12 @@ interface TextTrack extends EventTarget {
7661
8439
  activeCues: TextTrackCueList;
7662
8440
  cues: TextTrackCueList;
7663
8441
  oncuechange: (ev: Event) => any;
8442
+ addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
7664
8443
  kind: string;
7665
8444
  onload: (ev: any) => any;
8445
+ addEventListener(type: "load", listener: (ev: any) => any, useCapture?: boolean): void;
7666
8446
  onerror: (ev: ErrorEvent) => any;
8447
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7667
8448
  label: string;
7668
8449
  ERROR: number;
7669
8450
  SHOWING: number;
@@ -7672,6 +8453,7 @@ interface TextTrack extends EventTarget {
7672
8453
  NONE: number;
7673
8454
  HIDDEN: number;
7674
8455
  DISABLED: number;
8456
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7675
8457
  }
7676
8458
  declare var TextTrack: {
7677
8459
  prototype: TextTrack;
@@ -7692,11 +8474,14 @@ interface MediaQueryListListener {
7692
8474
  interface IDBRequest extends EventTarget {
7693
8475
  source: any;
7694
8476
  onsuccess: (ev: Event) => any;
8477
+ addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
7695
8478
  error: DOMError;
7696
8479
  transaction: IDBTransaction;
7697
8480
  onerror: (ev: ErrorEvent) => any;
8481
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7698
8482
  readyState: string;
7699
8483
  result: any;
8484
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7700
8485
  }
7701
8486
  declare var IDBRequest: {
7702
8487
  prototype: IDBRequest;
@@ -7705,9 +8490,11 @@ declare var IDBRequest: {
7705
8490
 
7706
8491
  interface MessagePort extends EventTarget {
7707
8492
  onmessage: (ev: any) => any;
8493
+ addEventListener(type: "message", listener: (ev: any) => any, useCapture?: boolean): void;
7708
8494
  close(): void;
7709
8495
  postMessage(message: any, ports?: any): void;
7710
8496
  start(): void;
8497
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7711
8498
  }
7712
8499
  declare var MessagePort: {
7713
8500
  prototype: MessagePort;
@@ -7747,13 +8534,21 @@ declare var Blob: {
7747
8534
  interface ApplicationCache extends EventTarget {
7748
8535
  status: number;
7749
8536
  ondownloading: (ev: Event) => any;
8537
+ addEventListener(type: "downloading", listener: (ev: Event) => any, useCapture?: boolean): void;
7750
8538
  onprogress: (ev: ProgressEvent) => any;
8539
+ addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
7751
8540
  onupdateready: (ev: Event) => any;
8541
+ addEventListener(type: "updateready", listener: (ev: Event) => any, useCapture?: boolean): void;
7752
8542
  oncached: (ev: Event) => any;
8543
+ addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void;
7753
8544
  onobsolete: (ev: Event) => any;
8545
+ addEventListener(type: "obsolete", listener: (ev: Event) => any, useCapture?: boolean): void;
7754
8546
  onerror: (ev: ErrorEvent) => any;
8547
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
7755
8548
  onchecking: (ev: Event) => any;
8549
+ addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void;
7756
8550
  onnoupdate: (ev: Event) => any;
8551
+ addEventListener(type: "noupdate", listener: (ev: Event) => any, useCapture?: boolean): void;
7757
8552
  swapCache(): void;
7758
8553
  abort(): void;
7759
8554
  update(): void;
@@ -7763,6 +8558,7 @@ interface ApplicationCache extends EventTarget {
7763
8558
  DOWNLOADING: number;
7764
8559
  IDLE: number;
7765
8560
  OBSOLETE: number;
8561
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7766
8562
  }
7767
8563
  declare var ApplicationCache: {
7768
8564
  prototype: ApplicationCache;
@@ -7776,18 +8572,22 @@ declare var ApplicationCache: {
7776
8572
  }
7777
8573
 
7778
8574
  interface MSHTMLVideoElementExtensions {
7779
- msIsStereo3D: bool;
8575
+ msIsStereo3D: boolean;
7780
8576
  msStereo3DPackingMode: string;
7781
8577
  onMSVideoOptimalLayoutChanged: (ev: any) => any;
8578
+ addEventListener(type: "MSVideoOptimalLayoutChanged", listener: (ev: any) => any, useCapture?: boolean): void;
7782
8579
  onMSVideoFrameStepCompleted: (ev: any) => any;
8580
+ addEventListener(type: "MSVideoFrameStepCompleted", listener: (ev: any) => any, useCapture?: boolean): void;
7783
8581
  msStereo3DRenderMode: string;
7784
- msIsLayoutOptimalForPlayback: bool;
7785
- msHorizontalMirror: bool;
8582
+ msIsLayoutOptimalForPlayback: boolean;
8583
+ msHorizontalMirror: boolean;
7786
8584
  onMSVideoFormatChanged: (ev: any) => any;
7787
- msZoom: bool;
7788
- msInsertVideoEffect(activatableClassId: string, effectRequired: bool, config?: any): void;
8585
+ addEventListener(type: "MSVideoFormatChanged", listener: (ev: any) => any, useCapture?: boolean): void;
8586
+ msZoom: boolean;
8587
+ msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
7789
8588
  msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;
7790
- msFrameStep(forward: bool): void;
8589
+ msFrameStep(forward: boolean): void;
8590
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
7791
8591
  }
7792
8592
 
7793
8593
  interface FrameRequestCallback {
@@ -7806,12 +8606,12 @@ interface CSS3DTransformsProperties {
7806
8606
  }
7807
8607
 
7808
8608
  interface XMLHttpRequest {
7809
- withCredentials: bool;
8609
+ withCredentials: boolean;
7810
8610
  }
7811
8611
 
7812
8612
  interface PopStateEvent extends Event {
7813
8613
  state: any;
7814
- initPopStateEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, stateArg: any): void;
8614
+ initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void;
7815
8615
  }
7816
8616
  declare var PopStateEvent: {
7817
8617
  prototype: PopStateEvent;
@@ -7839,8 +8639,8 @@ interface CSSGridProperties {
7839
8639
  }
7840
8640
 
7841
8641
  interface MSFileSaver {
7842
- msSaveBlob(blob: any, defaultName?: string): bool;
7843
- msSaveOrOpenBlob(blob: any, defaultName?: string): bool;
8642
+ msSaveBlob(blob: any, defaultName?: string): boolean;
8643
+ msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
7844
8644
  }
7845
8645
 
7846
8646
  interface MSStream {
@@ -7859,8 +8659,8 @@ interface MediaError extends MSMediaErrorExtensions {
7859
8659
  interface HTMLFieldSetElement {
7860
8660
  validationMessage: string;
7861
8661
  validity: ValidityState;
7862
- willValidate: bool;
7863
- checkValidity(): bool;
8662
+ willValidate: boolean;
8663
+ checkValidity(): boolean;
7864
8664
  setCustomValidity(error: string): void;
7865
8665
  }
7866
8666
 
@@ -7879,9 +8679,10 @@ interface MSRangeExtensions {
7879
8679
 
7880
8680
  interface HTMLElement {
7881
8681
  oncuechange: (ev: Event) => any;
7882
- spellcheck: bool;
8682
+ addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void;
8683
+ spellcheck: boolean;
7883
8684
  classList: DOMTokenList;
7884
- draggable: bool;
8685
+ draggable: boolean;
7885
8686
  }
7886
8687
 
7887
8688
  interface DataTransfer {
@@ -7913,8 +8714,8 @@ interface Range extends MSRangeExtensions {
7913
8714
  interface HTMLObjectElement {
7914
8715
  validationMessage: string;
7915
8716
  validity: ValidityState;
7916
- willValidate: bool;
7917
- checkValidity(): bool;
8717
+ willValidate: boolean;
8718
+ checkValidity(): boolean;
7918
8719
  setCustomValidity(error: string): void;
7919
8720
  }
7920
8721
 
@@ -7923,7 +8724,7 @@ interface MSPointerEvent extends MouseEvent {
7923
8724
  rotation: number;
7924
8725
  pressure: number;
7925
8726
  pointerType: number;
7926
- isPrimary: bool;
8727
+ isPrimary: boolean;
7927
8728
  tiltY: number;
7928
8729
  height: number;
7929
8730
  intermediatePoints: any;
@@ -7931,7 +8732,7 @@ interface MSPointerEvent extends MouseEvent {
7931
8732
  tiltX: number;
7932
8733
  hwTimestamp: number;
7933
8734
  pointerId: number;
7934
- initPointerEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: bool, altKeyArg: bool, shiftKeyArg: bool, metaKeyArg: bool, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: number, hwTimestampArg: number, isPrimary: bool): void;
8735
+ initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: number, hwTimestampArg: number, isPrimary: boolean): void;
7935
8736
  getCurrentPoint(element: Element): void;
7936
8737
  getIntermediatePoints(element: Element): void;
7937
8738
  MSPOINTER_TYPE_PEN: number;
@@ -7978,7 +8779,7 @@ interface MSCSSHighContrastProperties {
7978
8779
  interface MSManipulationEvent extends UIEvent {
7979
8780
  lastState: number;
7980
8781
  currentState: number;
7981
- initMSManipulationEvent(typeArg: string, canBubbleArg: bool, cancelableArg: bool, viewArg: AbstractView, detailArg: number, lastState: number, currentState: number): void;
8782
+ initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: AbstractView, detailArg: number, lastState: number, currentState: number): void;
7982
8783
  MS_MANIPULATION_STATE_STOPPED: number;
7983
8784
  MS_MANIPULATION_STATE_ACTIVE: number;
7984
8785
  MS_MANIPULATION_STATE_INERTIA: number;
@@ -7996,13 +8797,12 @@ interface FormData {
7996
8797
  }
7997
8798
  declare var FormData: {
7998
8799
  prototype: FormData;
7999
- new (): FormData;
8000
- new (form: HTMLFormElement): FormData;
8800
+ new (form?: HTMLFormElement): FormData;
8001
8801
  }
8002
8802
 
8003
8803
  interface MSHTMLImageElementExtensions {
8004
- msPlayToPrimary: bool;
8005
- msPlayToDisabled: bool;
8804
+ msPlayToPrimary: boolean;
8805
+ msPlayToDisabled: boolean;
8006
8806
  msPlayToSource: any;
8007
8807
  }
8008
8808
  declare var MSHTMLImageElementExtensions: {
@@ -8012,14 +8812,14 @@ declare var MSHTMLImageElementExtensions: {
8012
8812
 
8013
8813
  interface MSHTMLMediaElementExtensions {
8014
8814
  msAudioCategory: string;
8015
- msRealTime: bool;
8016
- msPlayToPrimary: bool;
8017
- msPlayToDisabled: bool;
8815
+ msRealTime: boolean;
8816
+ msPlayToPrimary: boolean;
8817
+ msPlayToDisabled: boolean;
8018
8818
  msPlayToSource: any;
8019
8819
  msAudioDeviceType: string;
8020
8820
  msClearEffects(): void;
8021
8821
  msSetMediaProtectionManager(mediaProtectionManager?: any): void;
8022
- msInsertAudioEffect(activatableClassId: string, effectRequired: bool, config?: any): void;
8822
+ msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;
8023
8823
  }
8024
8824
 
8025
8825
  interface SVGFEImageElement extends SVGElement, SVGLangSpace, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
@@ -8040,6 +8840,8 @@ declare var HTMLDataListElement: {
8040
8840
 
8041
8841
  interface AbstractWorker extends EventTarget {
8042
8842
  onerror: (ev: ErrorEvent) => any;
8843
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8844
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
8043
8845
  }
8044
8846
 
8045
8847
  interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
@@ -8071,15 +8873,15 @@ declare var SVGFECompositeElement: {
8071
8873
  }
8072
8874
 
8073
8875
  interface ValidityState {
8074
- customError: bool;
8075
- valueMissing: bool;
8076
- stepMismatch: bool;
8077
- rangeUnderflow: bool;
8078
- rangeOverflow: bool;
8079
- typeMismatch: bool;
8080
- patternMismatch: bool;
8081
- tooLong: bool;
8082
- valid: bool;
8876
+ customError: boolean;
8877
+ valueMissing: boolean;
8878
+ stepMismatch: boolean;
8879
+ rangeUnderflow: boolean;
8880
+ rangeOverflow: boolean;
8881
+ typeMismatch: boolean;
8882
+ patternMismatch: boolean;
8883
+ tooLong: boolean;
8884
+ valid: boolean;
8083
8885
  }
8084
8886
  declare var ValidityState: {
8085
8887
  prototype: ValidityState;
@@ -8095,7 +8897,7 @@ interface HTMLTrackElement extends HTMLElement {
8095
8897
  srclang: string;
8096
8898
  track: TextTrack;
8097
8899
  label: string;
8098
- defaul: bool;
8900
+ defaul: boolean;
8099
8901
  }
8100
8902
  declare var HTMLTrackElement: {
8101
8903
  prototype: HTMLTrackElement;
@@ -8118,12 +8920,18 @@ declare var MSApp: MSApp;
8118
8920
  interface MSXMLHttpRequestExtensions {
8119
8921
  response: any;
8120
8922
  onprogress: (ev: ProgressEvent) => any;
8923
+ addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8121
8924
  onabort: (ev: any) => any;
8925
+ addEventListener(type: "abort", listener: (ev: any) => any, useCapture?: boolean): void;
8122
8926
  responseType: string;
8123
8927
  onloadend: (ev: ProgressEvent) => any;
8928
+ addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void;
8124
8929
  upload: XMLHttpRequestEventTarget;
8125
8930
  onerror: (ev: ErrorEvent) => any;
8931
+ addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
8126
8932
  onloadstart: (ev: any) => any;
8933
+ addEventListener(type: "loadstart", listener: (ev: any) => any, useCapture?: boolean): void;
8934
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
8127
8935
  }
8128
8936
  declare var MSXMLHttpRequestExtensions: {
8129
8937
  prototype: MSXMLHttpRequestExtensions;
@@ -8191,8 +8999,10 @@ declare var MSCSSMatrix: {
8191
8999
 
8192
9000
  interface Worker extends AbstractWorker {
8193
9001
  onmessage: (ev: any) => any;
9002
+ addEventListener(type: "message", listener: (ev: any) => any, useCapture?: boolean): void;
8194
9003
  postMessage(message: any, ports?: any): void;
8195
9004
  terminate(): void;
9005
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
8196
9006
  }
8197
9007
  declare var Worker: {
8198
9008
  prototype: Worker;
@@ -8210,8 +9020,8 @@ interface MSMediaErrorExtensions {
8210
9020
  interface MSNavigatorAbilities {
8211
9021
  msProtocols: MSProtocolsCollection;
8212
9022
  msMaxTouchPoints: number;
8213
- msPointerEnabled: bool;
8214
- msManipulationViewsEnabled: bool;
9023
+ msPointerEnabled: boolean;
9024
+ msManipulationViewsEnabled: boolean;
8215
9025
  }
8216
9026
  declare var MSNavigatorAbilities: {
8217
9027
  prototype: MSNavigatorAbilities;
@@ -8219,6 +9029,7 @@ declare var MSNavigatorAbilities: {
8219
9029
  }
8220
9030
 
8221
9031
  declare var onpopstate: (ev: PopStateEvent) => any;
9032
+ declare function addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void;
8222
9033
  declare var applicationCache: ApplicationCache;
8223
9034
  declare function matchMedia(mediaQuery: string): MediaQueryList;
8224
9035
  declare function msMatchMedia(mediaQuery: string): MediaQueryList;
@@ -8238,7 +9049,7 @@ declare var console: Console;
8238
9049
  /////////////////////////////
8239
9050
  /// WorkerGlobalScope APIs
8240
9051
  /////////////////////////////
8241
- // TODO: These are only available in a Web Worker - should be in a seperate lib file
9052
+ // TODO: These are only available in a Web Worker - should be in a separate lib file
8242
9053
  declare function importScripts(...urls: string[]): void;
8243
9054
 
8244
9055
 
@@ -8254,11 +9065,10 @@ interface ITextWriter {
8254
9065
  }
8255
9066
 
8256
9067
  declare var WScript : {
8257
- Echo(s);
9068
+ Echo(s: any);
8258
9069
  StdErr: ITextWriter;
8259
9070
  StdOut: ITextWriter;
8260
9071
  Arguments: { length: number; Item(n: number): string; };
8261
9072
  ScriptFullName: string;
8262
9073
  Quit(exitCode?: number);
8263
9074
  }
8264
-