@@ -268,61 +268,61 @@ interface DOMException extends Error {
268
268
readonly code : number ;
269
269
readonly message : string ;
270
270
readonly name : string ;
271
- readonly ABORT_ERR : number ;
272
- readonly DATA_CLONE_ERR : number ;
273
- readonly DOMSTRING_SIZE_ERR : number ;
274
- readonly HIERARCHY_REQUEST_ERR : number ;
275
- readonly INDEX_SIZE_ERR : number ;
276
- readonly INUSE_ATTRIBUTE_ERR : number ;
277
- readonly INVALID_ACCESS_ERR : number ;
278
- readonly INVALID_CHARACTER_ERR : number ;
279
- readonly INVALID_MODIFICATION_ERR : number ;
280
- readonly INVALID_NODE_TYPE_ERR : number ;
281
- readonly INVALID_STATE_ERR : number ;
282
- readonly NAMESPACE_ERR : number ;
283
- readonly NETWORK_ERR : number ;
284
- readonly NOT_FOUND_ERR : number ;
285
- readonly NOT_SUPPORTED_ERR : number ;
286
- readonly NO_DATA_ALLOWED_ERR : number ;
287
- readonly NO_MODIFICATION_ALLOWED_ERR : number ;
288
- readonly QUOTA_EXCEEDED_ERR : number ;
289
- readonly SECURITY_ERR : number ;
290
- readonly SYNTAX_ERR : number ;
291
- readonly TIMEOUT_ERR : number ;
292
- readonly TYPE_MISMATCH_ERR : number ;
293
- readonly URL_MISMATCH_ERR : number ;
294
- readonly VALIDATION_ERR : number ;
295
- readonly WRONG_DOCUMENT_ERR : number ;
271
+ readonly INDEX_SIZE_ERR : 1 ;
272
+ readonly DOMSTRING_SIZE_ERR : 2 ;
273
+ readonly HIERARCHY_REQUEST_ERR : 3 ;
274
+ readonly WRONG_DOCUMENT_ERR : 4 ;
275
+ readonly INVALID_CHARACTER_ERR : 5 ;
276
+ readonly NO_DATA_ALLOWED_ERR : 6 ;
277
+ readonly NO_MODIFICATION_ALLOWED_ERR : 7 ;
278
+ readonly NOT_FOUND_ERR : 8 ;
279
+ readonly NOT_SUPPORTED_ERR : 9 ;
280
+ readonly INUSE_ATTRIBUTE_ERR : 10 ;
281
+ readonly INVALID_STATE_ERR : 11 ;
282
+ readonly SYNTAX_ERR : 12 ;
283
+ readonly INVALID_MODIFICATION_ERR : 13 ;
284
+ readonly NAMESPACE_ERR : 14 ;
285
+ readonly INVALID_ACCESS_ERR : 15 ;
286
+ readonly VALIDATION_ERR : 16 ;
287
+ readonly TYPE_MISMATCH_ERR : 17 ;
288
+ readonly SECURITY_ERR : 18 ;
289
+ readonly NETWORK_ERR : 19 ;
290
+ readonly ABORT_ERR : 20 ;
291
+ readonly URL_MISMATCH_ERR : 21 ;
292
+ readonly QUOTA_EXCEEDED_ERR : 22 ;
293
+ readonly TIMEOUT_ERR : 23 ;
294
+ readonly INVALID_NODE_TYPE_ERR : 24 ;
295
+ readonly DATA_CLONE_ERR : 25 ;
296
296
}
297
297
298
298
declare var DOMException : {
299
299
prototype : DOMException ;
300
300
new ( message ?: string , name ?: string ) : DOMException ;
301
- readonly ABORT_ERR : number ;
302
- readonly DATA_CLONE_ERR : number ;
303
- readonly DOMSTRING_SIZE_ERR : number ;
304
- readonly HIERARCHY_REQUEST_ERR : number ;
305
- readonly INDEX_SIZE_ERR : number ;
306
- readonly INUSE_ATTRIBUTE_ERR : number ;
307
- readonly INVALID_ACCESS_ERR : number ;
308
- readonly INVALID_CHARACTER_ERR : number ;
309
- readonly INVALID_MODIFICATION_ERR : number ;
310
- readonly INVALID_NODE_TYPE_ERR : number ;
311
- readonly INVALID_STATE_ERR : number ;
312
- readonly NAMESPACE_ERR : number ;
313
- readonly NETWORK_ERR : number ;
314
- readonly NOT_FOUND_ERR : number ;
315
- readonly NOT_SUPPORTED_ERR : number ;
316
- readonly NO_DATA_ALLOWED_ERR : number ;
317
- readonly NO_MODIFICATION_ALLOWED_ERR : number ;
318
- readonly QUOTA_EXCEEDED_ERR : number ;
319
- readonly SECURITY_ERR : number ;
320
- readonly SYNTAX_ERR : number ;
321
- readonly TIMEOUT_ERR : number ;
322
- readonly TYPE_MISMATCH_ERR : number ;
323
- readonly URL_MISMATCH_ERR : number ;
324
- readonly VALIDATION_ERR : number ;
325
- readonly WRONG_DOCUMENT_ERR : number ;
301
+ readonly INDEX_SIZE_ERR : 1 ;
302
+ readonly DOMSTRING_SIZE_ERR : 2 ;
303
+ readonly HIERARCHY_REQUEST_ERR : 3 ;
304
+ readonly WRONG_DOCUMENT_ERR : 4 ;
305
+ readonly INVALID_CHARACTER_ERR : 5 ;
306
+ readonly NO_DATA_ALLOWED_ERR : 6 ;
307
+ readonly NO_MODIFICATION_ALLOWED_ERR : 7 ;
308
+ readonly NOT_FOUND_ERR : 8 ;
309
+ readonly NOT_SUPPORTED_ERR : 9 ;
310
+ readonly INUSE_ATTRIBUTE_ERR : 10 ;
311
+ readonly INVALID_STATE_ERR : 11 ;
312
+ readonly SYNTAX_ERR : 12 ;
313
+ readonly INVALID_MODIFICATION_ERR : 13 ;
314
+ readonly NAMESPACE_ERR : 14 ;
315
+ readonly INVALID_ACCESS_ERR : 15 ;
316
+ readonly VALIDATION_ERR : 16 ;
317
+ readonly TYPE_MISMATCH_ERR : 17 ;
318
+ readonly SECURITY_ERR : 18 ;
319
+ readonly NETWORK_ERR : 19 ;
320
+ readonly ABORT_ERR : 20 ;
321
+ readonly URL_MISMATCH_ERR : 21 ;
322
+ readonly QUOTA_EXCEEDED_ERR : 22 ;
323
+ readonly TIMEOUT_ERR : 23 ;
324
+ readonly INVALID_NODE_TYPE_ERR : 24 ;
325
+ readonly DATA_CLONE_ERR : 25 ;
326
326
} ;
327
327
328
328
/** Events providing information related to errors in scripts or in files. */
@@ -377,19 +377,19 @@ interface Event {
377
377
stopImmediatePropagation ( ) : void ;
378
378
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
379
379
stopPropagation ( ) : void ;
380
- readonly AT_TARGET : number ;
381
- readonly BUBBLING_PHASE : number ;
382
- readonly CAPTURING_PHASE : number ;
383
- readonly NONE : number ;
380
+ readonly NONE : 0 ;
381
+ readonly CAPTURING_PHASE : 1 ;
382
+ readonly AT_TARGET : 2 ;
383
+ readonly BUBBLING_PHASE : 3 ;
384
384
}
385
385
386
386
declare var Event : {
387
387
prototype : Event ;
388
388
new ( type : string , eventInitDict ?: EventInit ) : Event ;
389
- readonly AT_TARGET : number ;
390
- readonly BUBBLING_PHASE : number ;
391
- readonly CAPTURING_PHASE : number ;
392
- readonly NONE : number ;
389
+ readonly NONE : 0 ;
390
+ readonly CAPTURING_PHASE : 1 ;
391
+ readonly AT_TARGET : 2 ;
392
+ readonly BUBBLING_PHASE : 3 ;
393
393
} ;
394
394
395
395
interface EventListener {
0 commit comments