@types/web 0.0.296 → 0.0.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +516 -85
- package/package.json +1 -1
- package/ts5.5/index.d.ts +516 -85
- package/ts5.6/index.d.ts +516 -85
- package/ts5.9/index.d.ts +516 -85
package/ts5.5/index.d.ts
CHANGED
|
@@ -947,12 +947,12 @@ interface KeySystemTrackConfiguration {
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
interface KeyboardEventInit extends EventModifierInit {
|
|
950
|
-
/** @deprecated */
|
|
950
|
+
/** @deprecated `charCode` is inconsistent across environments, consider using `key` instead. */
|
|
951
951
|
charCode?: number;
|
|
952
952
|
code?: string;
|
|
953
953
|
isComposing?: boolean;
|
|
954
954
|
key?: string;
|
|
955
|
-
/** @deprecated */
|
|
955
|
+
/** @deprecated `keyCode` is inconsistent across environments, consider using `key` instead. */
|
|
956
956
|
keyCode?: number;
|
|
957
957
|
location?: number;
|
|
958
958
|
repeat?: boolean;
|
|
@@ -1257,11 +1257,59 @@ interface MutationObserverInit {
|
|
|
1257
1257
|
subtree?: boolean;
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
+
interface NavigateEventInit extends EventInit {
|
|
1261
|
+
canIntercept?: boolean;
|
|
1262
|
+
destination: NavigationDestination;
|
|
1263
|
+
downloadRequest?: string | null;
|
|
1264
|
+
formData?: FormData | null;
|
|
1265
|
+
hasUAVisualTransition?: boolean;
|
|
1266
|
+
hashChange?: boolean;
|
|
1267
|
+
info?: any;
|
|
1268
|
+
navigationType?: NavigationType;
|
|
1269
|
+
signal: AbortSignal;
|
|
1270
|
+
sourceElement?: Element | null;
|
|
1271
|
+
userInitiated?: boolean;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
interface NavigationCurrentEntryChangeEventInit extends EventInit {
|
|
1275
|
+
from: NavigationHistoryEntry;
|
|
1276
|
+
navigationType?: NavigationType | null;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
interface NavigationInterceptOptions {
|
|
1280
|
+
focusReset?: NavigationFocusReset;
|
|
1281
|
+
handler?: NavigationInterceptHandler;
|
|
1282
|
+
precommitHandler?: NavigationPrecommitHandler;
|
|
1283
|
+
scroll?: NavigationScrollBehavior;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
interface NavigationNavigateOptions extends NavigationOptions {
|
|
1287
|
+
history?: NavigationHistoryBehavior;
|
|
1288
|
+
state?: any;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
interface NavigationOptions {
|
|
1292
|
+
info?: any;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1260
1295
|
interface NavigationPreloadState {
|
|
1261
1296
|
enabled?: boolean;
|
|
1262
1297
|
headerValue?: string;
|
|
1263
1298
|
}
|
|
1264
1299
|
|
|
1300
|
+
interface NavigationReloadOptions extends NavigationOptions {
|
|
1301
|
+
state?: any;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
interface NavigationResult {
|
|
1305
|
+
committed?: Promise<NavigationHistoryEntry>;
|
|
1306
|
+
finished?: Promise<NavigationHistoryEntry>;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
interface NavigationUpdateCurrentEntryOptions {
|
|
1310
|
+
state: any;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1265
1313
|
interface NotificationOptions {
|
|
1266
1314
|
badge?: string;
|
|
1267
1315
|
body?: string;
|
|
@@ -2201,6 +2249,10 @@ interface ShareData {
|
|
|
2201
2249
|
url?: string;
|
|
2202
2250
|
}
|
|
2203
2251
|
|
|
2252
|
+
interface ShowPopoverOptions {
|
|
2253
|
+
source?: HTMLElement;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2204
2256
|
interface SpeechRecognitionErrorEventInit extends EventInit {
|
|
2205
2257
|
error: SpeechRecognitionErrorCode;
|
|
2206
2258
|
message?: string;
|
|
@@ -2316,6 +2368,10 @@ interface ToggleEventInit extends EventInit {
|
|
|
2316
2368
|
source?: Element | null;
|
|
2317
2369
|
}
|
|
2318
2370
|
|
|
2371
|
+
interface TogglePopoverOptions extends ShowPopoverOptions {
|
|
2372
|
+
force?: boolean;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2319
2375
|
interface TouchEventInit extends EventModifierInit {
|
|
2320
2376
|
changedTouches?: Touch[];
|
|
2321
2377
|
targetTouches?: Touch[];
|
|
@@ -2610,8 +2666,8 @@ interface WebTransportErrorOptions {
|
|
|
2610
2666
|
}
|
|
2611
2667
|
|
|
2612
2668
|
interface WebTransportHash {
|
|
2613
|
-
algorithm
|
|
2614
|
-
value
|
|
2669
|
+
algorithm: string;
|
|
2670
|
+
value: BufferSource;
|
|
2615
2671
|
}
|
|
2616
2672
|
|
|
2617
2673
|
interface WebTransportOptions {
|
|
@@ -4829,7 +4885,7 @@ declare var CSSCounterStyleRule: {
|
|
|
4829
4885
|
*/
|
|
4830
4886
|
interface CSSFontFaceRule extends CSSRule {
|
|
4831
4887
|
/**
|
|
4832
|
-
* The read-only **`style`** property of the CSSFontFaceRule interface
|
|
4888
|
+
* The read-only **`style`** property of the CSSFontFaceRule interface contains a CSSStyleDeclaration object representing the descriptors available in the @font-face rule's body.
|
|
4833
4889
|
*
|
|
4834
4890
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
|
|
4835
4891
|
*/
|
|
@@ -4960,7 +5016,7 @@ interface CSSImportRule extends CSSRule {
|
|
|
4960
5016
|
*/
|
|
4961
5017
|
readonly layerName: string | null;
|
|
4962
5018
|
/**
|
|
4963
|
-
* The read-only **`media`** property of the CSSImportRule interface returns a MediaList object
|
|
5019
|
+
* The read-only **`media`** property of the CSSImportRule interface returns a MediaList object representing the media query list of the @import rule.
|
|
4964
5020
|
*
|
|
4965
5021
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media)
|
|
4966
5022
|
*/
|
|
@@ -4997,7 +5053,7 @@ interface CSSKeyframeRule extends CSSRule {
|
|
|
4997
5053
|
*/
|
|
4998
5054
|
keyText: string;
|
|
4999
5055
|
/**
|
|
5000
|
-
* The read-only **`
|
|
5056
|
+
* The read-only **`style`** property of the CSSKeyframeRule interface contains a CSSStyleDeclaration object representing the descriptors available in the @keyframes rule's body.
|
|
5001
5057
|
*
|
|
5002
5058
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
|
|
5003
5059
|
*/
|
|
@@ -5286,7 +5342,7 @@ declare var CSSMatrixComponent: {
|
|
|
5286
5342
|
*/
|
|
5287
5343
|
interface CSSMediaRule extends CSSConditionRule {
|
|
5288
5344
|
/**
|
|
5289
|
-
* The read-only **`media`** property of the CSSMediaRule interface
|
|
5345
|
+
* The read-only **`media`** property of the CSSMediaRule interface contains a MediaList object representing the media query list of the @media rule.
|
|
5290
5346
|
*
|
|
5291
5347
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media)
|
|
5292
5348
|
*/
|
|
@@ -5488,7 +5544,7 @@ interface CSSPageRule extends CSSGroupingRule {
|
|
|
5488
5544
|
*/
|
|
5489
5545
|
selectorText: string;
|
|
5490
5546
|
/**
|
|
5491
|
-
* The **`style`**
|
|
5547
|
+
* The read-only **`style`** property of the CSSPageRule interface contains a CSSPageDescriptors object representing the descriptors available in the @page rule's body.
|
|
5492
5548
|
*
|
|
5493
5549
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style)
|
|
5494
5550
|
*/
|
|
@@ -5685,7 +5741,7 @@ interface CSSPositionTryRule extends CSSRule {
|
|
|
5685
5741
|
*/
|
|
5686
5742
|
readonly name: string;
|
|
5687
5743
|
/**
|
|
5688
|
-
* The **`style`**
|
|
5744
|
+
* The read-only **`style`** property of the CSSPositionTryRule interface contains a CSSPositionTryDescriptors object representing the descriptors available in the @position-try rule's body.
|
|
5689
5745
|
*
|
|
5690
5746
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPositionTryRule/style)
|
|
5691
5747
|
*/
|
|
@@ -6179,7 +6235,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6179
6235
|
*/
|
|
6180
6236
|
animationRangeStart: string;
|
|
6181
6237
|
/**
|
|
6182
|
-
* The animation-timeline CSS property specifies the timeline
|
|
6238
|
+
* The animation-timeline CSS property specifies the timeline used to control the progress of a CSS animation.
|
|
6183
6239
|
*
|
|
6184
6240
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/animation-timeline)
|
|
6185
6241
|
*/
|
|
@@ -6967,6 +7023,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6967
7023
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/empty-cells)
|
|
6968
7024
|
*/
|
|
6969
7025
|
emptyCells: string;
|
|
7026
|
+
/**
|
|
7027
|
+
* The field-sizing CSS property enables you to control the sizing behavior of elements that are given a default preferred size, such as form control elements. This property enables you to override the default sizing behavior, allowing form controls to adjust in size to fit their contents.
|
|
7028
|
+
*
|
|
7029
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/field-sizing)
|
|
7030
|
+
*/
|
|
7031
|
+
fieldSizing: string;
|
|
6970
7032
|
/**
|
|
6971
7033
|
* The **`fill`** CSS property defines how SVG text content and the interior canvas of SVG shapes are filled or painted. If present, it overrides the element's fill attribute.
|
|
6972
7034
|
*
|
|
@@ -7624,6 +7686,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
7624
7686
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/math-depth)
|
|
7625
7687
|
*/
|
|
7626
7688
|
mathDepth: string;
|
|
7689
|
+
/**
|
|
7690
|
+
* The math-shift property indicates whether superscripts inside MathML formulas should be raised by a normal or compact shift.
|
|
7691
|
+
*
|
|
7692
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/math-shift)
|
|
7693
|
+
*/
|
|
7694
|
+
mathShift: string;
|
|
7627
7695
|
/**
|
|
7628
7696
|
* The math-style property indicates whether MathML equations should render with normal or compact height.
|
|
7629
7697
|
*
|
|
@@ -8029,6 +8097,12 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8029
8097
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-try-order)
|
|
8030
8098
|
*/
|
|
8031
8099
|
positionTryOrder: string;
|
|
8100
|
+
/**
|
|
8101
|
+
* The position-visibility CSS property enables conditionally hiding an anchor-positioned element depending on, for example, whether it is overflowing its containing element or the viewport.
|
|
8102
|
+
*
|
|
8103
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/position-visibility)
|
|
8104
|
+
*/
|
|
8105
|
+
positionVisibility: string;
|
|
8032
8106
|
/**
|
|
8033
8107
|
* The print-color-adjust CSS property sets what, if anything, the user agent may do to optimize the appearance of the element on the output device. By default, the browser is allowed to make any adjustments to the element's appearance it determines to be necessary and prudent given the type and capabilities of the output device.
|
|
8034
8108
|
*
|
|
@@ -8258,13 +8332,13 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8258
8332
|
*/
|
|
8259
8333
|
scrollSnapType: string;
|
|
8260
8334
|
/**
|
|
8261
|
-
* The scroll-timeline CSS shorthand property is used to define a named scroll progress timeline, which is progressed through by scrolling a scrollable element (scroller) between top and bottom (or left and right).
|
|
8335
|
+
* The scroll-timeline CSS shorthand property is used to define a named scroll progress timeline, which is progressed through by scrolling a scrollable element (scroller) between top and bottom (or left and right).
|
|
8262
8336
|
*
|
|
8263
8337
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/scroll-timeline)
|
|
8264
8338
|
*/
|
|
8265
8339
|
scrollTimeline: string;
|
|
8266
8340
|
/**
|
|
8267
|
-
* The scroll-timeline-axis CSS property is used to specify the scrollbar direction that will be used to provide the timeline for a
|
|
8341
|
+
* The scroll-timeline-axis CSS property is used to specify the scrollbar direction that will be used to provide the timeline for a scroll driven animation animation, which is progressed through by scrolling a scrollable element (scroller).
|
|
8268
8342
|
*
|
|
8269
8343
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/scroll-timeline-axis)
|
|
8270
8344
|
*/
|
|
@@ -8672,7 +8746,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8672
8746
|
*/
|
|
8673
8747
|
verticalAlign: string;
|
|
8674
8748
|
/**
|
|
8675
|
-
* The view-timeline CSS shorthand property
|
|
8749
|
+
* The view-timeline CSS shorthand property defines a named view progress timeline's name, direction, and inset values.
|
|
8676
8750
|
*
|
|
8677
8751
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/view-timeline)
|
|
8678
8752
|
*/
|
|
@@ -9174,7 +9248,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
9174
9248
|
*/
|
|
9175
9249
|
wordSpacing: string;
|
|
9176
9250
|
/**
|
|
9177
|
-
* @deprecated
|
|
9251
|
+
* @deprecated `word-wrap` is a legacy alias of `overflow-wrap`.
|
|
9178
9252
|
*
|
|
9179
9253
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/overflow-wrap)
|
|
9180
9254
|
*/
|
|
@@ -9229,7 +9303,7 @@ interface CSSStyleRule extends CSSGroupingRule {
|
|
|
9229
9303
|
*/
|
|
9230
9304
|
selectorText: string;
|
|
9231
9305
|
/**
|
|
9232
|
-
* The read-only **`style`** property
|
|
9306
|
+
* The read-only **`style`** property of the CSSStyleRule interface contains a CSSStyleProperties object representing the properties list in this style rule's body.
|
|
9233
9307
|
*
|
|
9234
9308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
|
|
9235
9309
|
*/
|
|
@@ -10284,14 +10358,14 @@ declare var CompositionEvent: {
|
|
|
10284
10358
|
};
|
|
10285
10359
|
|
|
10286
10360
|
/**
|
|
10287
|
-
* The **`CompressionStream`** interface of the Compression Streams API
|
|
10361
|
+
* The **`CompressionStream`** interface of the Compression Streams API compresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
10288
10362
|
*
|
|
10289
10363
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
10290
10364
|
*/
|
|
10291
10365
|
interface CompressionStream extends GenericTransformStream {
|
|
10292
|
-
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
10366
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream that emits compressed data as Uint8Array chunks. */
|
|
10293
10367
|
readonly readable: ReadableStream<Uint8Array>;
|
|
10294
|
-
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
10368
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream that accepts uncompressed data to be compressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
10295
10369
|
readonly writable: WritableStream<BufferSource>;
|
|
10296
10370
|
}
|
|
10297
10371
|
|
|
@@ -11767,14 +11841,14 @@ declare var DataTransferItemList: {
|
|
|
11767
11841
|
};
|
|
11768
11842
|
|
|
11769
11843
|
/**
|
|
11770
|
-
* The **`DecompressionStream`** interface of the Compression Streams API
|
|
11844
|
+
* The **`DecompressionStream`** interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
11771
11845
|
*
|
|
11772
11846
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
11773
11847
|
*/
|
|
11774
11848
|
interface DecompressionStream extends GenericTransformStream {
|
|
11775
|
-
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
11849
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream that emits decompressed data as Uint8Array chunks. */
|
|
11776
11850
|
readonly readable: ReadableStream<Uint8Array>;
|
|
11777
|
-
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
11851
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream that accepts compressed data to be decompressed, in the form of ArrayBuffer, TypedArray, or DataView chunks. */
|
|
11778
11852
|
readonly writable: WritableStream<BufferSource>;
|
|
11779
11853
|
}
|
|
11780
11854
|
|
|
@@ -11967,6 +12041,12 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
11967
12041
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
|
|
11968
12042
|
*/
|
|
11969
12043
|
readonly URL: string;
|
|
12044
|
+
/**
|
|
12045
|
+
* The **`activeViewTransition`** read-only property of the Document interface returns a ViewTransition instance representing the view transition currently active on the document.
|
|
12046
|
+
*
|
|
12047
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeViewTransition)
|
|
12048
|
+
*/
|
|
12049
|
+
readonly activeViewTransition: ViewTransition | null;
|
|
11970
12050
|
/**
|
|
11971
12051
|
* Returns or sets the color of an active link in the document body. A link is active during the time between mousedown and mouseup events.
|
|
11972
12052
|
* @deprecated
|
|
@@ -12175,7 +12255,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
12175
12255
|
*/
|
|
12176
12256
|
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
|
|
12177
12257
|
/**
|
|
12178
|
-
* The **`
|
|
12258
|
+
* The read-only **`location`** property of the Document interface returns a Location object, which contains information about the URL of the document and provides methods for changing that URL and loading another URL.
|
|
12179
12259
|
*
|
|
12180
12260
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)
|
|
12181
12261
|
*/
|
|
@@ -12386,6 +12466,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
12386
12466
|
createEvent(eventInterface: "MessageEvent"): MessageEvent;
|
|
12387
12467
|
createEvent(eventInterface: "MouseEvent"): MouseEvent;
|
|
12388
12468
|
createEvent(eventInterface: "MouseEvents"): MouseEvent;
|
|
12469
|
+
createEvent(eventInterface: "NavigateEvent"): NavigateEvent;
|
|
12470
|
+
createEvent(eventInterface: "NavigationCurrentEntryChangeEvent"): NavigationCurrentEntryChangeEvent;
|
|
12389
12471
|
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
|
|
12390
12472
|
createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
|
|
12391
12473
|
createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
|
|
@@ -12529,7 +12611,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
12529
12611
|
*/
|
|
12530
12612
|
hasStorageAccess(): Promise<boolean>;
|
|
12531
12613
|
/**
|
|
12532
|
-
* The
|
|
12614
|
+
* The **`importNode()`** method of the Document interface creates a copy of a Node or DocumentFragment from another document, to be inserted into the current document later.
|
|
12533
12615
|
*
|
|
12534
12616
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)
|
|
12535
12617
|
*/
|
|
@@ -12912,7 +12994,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
12912
12994
|
*/
|
|
12913
12995
|
readonly attributes: NamedNodeMap;
|
|
12914
12996
|
/**
|
|
12915
|
-
* The **`
|
|
12997
|
+
* The read-only **`classList`** property of the Element interface contains a live DOMTokenList collection representing the class attribute of the element. This can then be used to manipulate the class list.
|
|
12916
12998
|
*
|
|
12917
12999
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)
|
|
12918
13000
|
*/
|
|
@@ -12989,7 +13071,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
12989
13071
|
outerHTML: string;
|
|
12990
13072
|
readonly ownerDocument: Document;
|
|
12991
13073
|
/**
|
|
12992
|
-
* The **`part`** property of the Element interface
|
|
13074
|
+
* The read-only **`part`** property of the Element interface contains a DOMTokenList object representing the part identifier(s) of the element. It reflects the element's part content attribute. These can be used to style parts of a shadow DOM, via the ::part pseudo-element.
|
|
12993
13075
|
*
|
|
12994
13076
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part)
|
|
12995
13077
|
*/
|
|
@@ -15284,7 +15366,7 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
15284
15366
|
*/
|
|
15285
15367
|
rel: string;
|
|
15286
15368
|
/**
|
|
15287
|
-
* The **`
|
|
15369
|
+
* The read-only **`relList`** property of the HTMLAnchorElement returns a live DOMTokenList object containing the set of link types indicating the relationship between the resource represented by the <a> element and the current document. It reflects the <a> element's rel content attribute.
|
|
15288
15370
|
*
|
|
15289
15371
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList)
|
|
15290
15372
|
*/
|
|
@@ -15367,7 +15449,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
|
|
|
15367
15449
|
*/
|
|
15368
15450
|
rel: string;
|
|
15369
15451
|
/**
|
|
15370
|
-
* The **`
|
|
15452
|
+
* The read-only **`relList`** property of the HTMLAreaElement returns a live DOMTokenList object containing the set of link types indicating the relationship between the resource represented by the <area> element and the current document. It reflects the <area> element's rel content attribute.
|
|
15371
15453
|
*
|
|
15372
15454
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList)
|
|
15373
15455
|
*/
|
|
@@ -16091,13 +16173,13 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
|
|
|
16091
16173
|
*
|
|
16092
16174
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover)
|
|
16093
16175
|
*/
|
|
16094
|
-
showPopover(): void;
|
|
16176
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
16095
16177
|
/**
|
|
16096
16178
|
* The **`togglePopover()`** method of the HTMLElement interface toggles a popover element (i.e., one that has a valid popover attribute) between the hidden and showing states.
|
|
16097
16179
|
*
|
|
16098
16180
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover)
|
|
16099
16181
|
*/
|
|
16100
|
-
togglePopover(options?: boolean): boolean;
|
|
16182
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
16101
16183
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
16102
16184
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
16103
16185
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -16375,7 +16457,7 @@ interface HTMLFormElement extends HTMLElement {
|
|
|
16375
16457
|
*/
|
|
16376
16458
|
rel: string;
|
|
16377
16459
|
/**
|
|
16378
|
-
* The **`relList`**
|
|
16460
|
+
* The read-only **`relList`** property of the HTMLFormElement returns a live DOMTokenList object containing the set of link types indicating the relationship between the resource represented by the <form> element and the current document. It reflects the <form> element's rel content attribute.
|
|
16379
16461
|
*
|
|
16380
16462
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/relList)
|
|
16381
16463
|
*/
|
|
@@ -16731,7 +16813,7 @@ interface HTMLIFrameElement extends HTMLElement {
|
|
|
16731
16813
|
*/
|
|
16732
16814
|
referrerPolicy: ReferrerPolicy;
|
|
16733
16815
|
/**
|
|
16734
|
-
* The **`sandbox`**
|
|
16816
|
+
* The read-only **`sandbox`** property of the HTMLIFrameElement returns a live DOMTokenList object indicating extra restrictions on the behavior of the nested content. It reflects the <iframe> element's sandbox content attribute.
|
|
16735
16817
|
*
|
|
16736
16818
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox)
|
|
16737
16819
|
*/
|
|
@@ -16780,82 +16862,82 @@ declare var HTMLIFrameElement: {
|
|
|
16780
16862
|
*/
|
|
16781
16863
|
interface HTMLImageElement extends HTMLElement {
|
|
16782
16864
|
/**
|
|
16783
|
-
* The
|
|
16865
|
+
* The deprecated **`align`** property of the HTMLImageElement interface is a string which indicates how to position the image relative to its container. It reflects the <img> element's align content attribute.
|
|
16784
16866
|
* @deprecated
|
|
16785
16867
|
*
|
|
16786
16868
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)
|
|
16787
16869
|
*/
|
|
16788
16870
|
align: string;
|
|
16789
16871
|
/**
|
|
16790
|
-
* The
|
|
16872
|
+
* The **`alt`** property of the HTMLImageElement interface provides fallback (alternate) text to display when the image specified by the <img> element is not displayed, whether because of an error, because the user has disabled the loading of images, or because the image hasn't finished loading yet. It reflects the <img> element's alt content attribute.
|
|
16791
16873
|
*
|
|
16792
16874
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)
|
|
16793
16875
|
*/
|
|
16794
16876
|
alt: string;
|
|
16795
16877
|
/**
|
|
16796
|
-
* The
|
|
16878
|
+
* The deprecated **`border`** property of the HTMLImageElement interface specifies the number of pixels thick the border surrounding the image should be. A value of 0, the default, indicates that no border should be drawn. It reflects the <img> element's border content attribute.
|
|
16797
16879
|
* @deprecated
|
|
16798
16880
|
*
|
|
16799
16881
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)
|
|
16800
16882
|
*/
|
|
16801
16883
|
border: string;
|
|
16802
16884
|
/**
|
|
16803
|
-
* The read-only HTMLImageElement interface
|
|
16885
|
+
* The **`complete`** read-only property of the HTMLImageElement interface is a Boolean value indicating whether or not the image has completely loaded.
|
|
16804
16886
|
*
|
|
16805
16887
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)
|
|
16806
16888
|
*/
|
|
16807
16889
|
readonly complete: boolean;
|
|
16808
16890
|
/**
|
|
16809
|
-
* The
|
|
16891
|
+
* The **`crossOrigin`** property of the HTMLImageElement interface is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image. It reflects the <img> element's crossorigin content attribute.
|
|
16810
16892
|
*
|
|
16811
16893
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin)
|
|
16812
16894
|
*/
|
|
16813
16895
|
crossOrigin: string | null;
|
|
16814
16896
|
/**
|
|
16815
|
-
* The read-only HTMLImageElement
|
|
16897
|
+
* The **`currentSrc`** read-only property of the HTMLImageElement interface indicates the URL of the image selected by the browser to load.
|
|
16816
16898
|
*
|
|
16817
16899
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc)
|
|
16818
16900
|
*/
|
|
16819
16901
|
readonly currentSrc: string;
|
|
16820
16902
|
/**
|
|
16821
|
-
* The **`decoding`** property of the HTMLImageElement interface provides a hint to the browser as to how it should decode the image. More specifically, whether it should wait for the image to be decoded before presenting other content updates or not.
|
|
16903
|
+
* The **`decoding`** property of the HTMLImageElement interface provides a hint to the browser as to how it should decode the image. More specifically, whether it should wait for the image to be decoded before presenting other content updates or not. It reflects the <img> element's decoding content attribute.
|
|
16822
16904
|
*
|
|
16823
16905
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding)
|
|
16824
16906
|
*/
|
|
16825
16907
|
decoding: "async" | "sync" | "auto";
|
|
16826
16908
|
/**
|
|
16827
|
-
* The **`fetchPriority`** property of the HTMLImageElement interface represents a hint to the browser indicating how it should prioritize fetching a particular image relative to other images. It reflects the
|
|
16909
|
+
* The **`fetchPriority`** property of the HTMLImageElement interface represents a hint to the browser indicating how it should prioritize fetching a particular image relative to other images. It reflects the <img> element's fetchpriority content attribute.
|
|
16828
16910
|
*
|
|
16829
16911
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority)
|
|
16830
16912
|
*/
|
|
16831
16913
|
fetchPriority: "high" | "low" | "auto";
|
|
16832
16914
|
/**
|
|
16833
|
-
* The **`height`** property of the HTMLImageElement interface indicates the height at which the image is drawn, in CSS pixels if the image is being drawn or rendered to any visual medium such as
|
|
16915
|
+
* The **`height`** property of the HTMLImageElement interface indicates the height at which the image is drawn, in CSS pixels, if the image is being drawn or rendered to any visual medium such as a screen or printer. Otherwise, it's the natural, pixel density-corrected height of the image.
|
|
16834
16916
|
*
|
|
16835
16917
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)
|
|
16836
16918
|
*/
|
|
16837
16919
|
height: number;
|
|
16838
16920
|
/**
|
|
16839
|
-
* The
|
|
16921
|
+
* The deprecated **`hspace`** property of the HTMLImageElement interface specifies the number of pixels of empty space to leave empty on the left and right sides of the <img> element when laying out the page. It reflects the <img> element's hspace content attribute.
|
|
16840
16922
|
* @deprecated
|
|
16841
16923
|
*
|
|
16842
16924
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)
|
|
16843
16925
|
*/
|
|
16844
16926
|
hspace: number;
|
|
16845
16927
|
/**
|
|
16846
|
-
* The
|
|
16928
|
+
* The **`isMap`** property of the HTMLImageElement interface indicates that the image is part of a server-side map. If so, the coordinates where the user clicked on the image are sent to the server. It reflects the <img> element's ismap content attribute. This attribute is allowed only if the <img> element is a descendant of an <a> element with a valid href attribute.
|
|
16847
16929
|
*
|
|
16848
16930
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)
|
|
16849
16931
|
*/
|
|
16850
16932
|
isMap: boolean;
|
|
16851
16933
|
/**
|
|
16852
|
-
* The
|
|
16934
|
+
* The **`loading`** property of the HTMLImageElement interface provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport. This helps to optimize the loading of the document's contents by postponing loading the image until it's expected to be needed, rather than immediately during the initial page load. It reflects the <img> element's loading content attribute.
|
|
16853
16935
|
*
|
|
16854
16936
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)
|
|
16855
16937
|
*/
|
|
16856
16938
|
loading: "eager" | "lazy";
|
|
16857
16939
|
/**
|
|
16858
|
-
* The deprecated
|
|
16940
|
+
* The deprecated **`longDesc`** property of the HTMLImageElement interface specifies the URL of a text or HTML file which contains a long-form description of the image. This can be used to provide optional added details beyond the short description provided in the title attribute. It reflects the <img> element's longdesc content attribute.
|
|
16859
16941
|
* @deprecated
|
|
16860
16942
|
*
|
|
16861
16943
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)
|
|
@@ -16864,81 +16946,81 @@ interface HTMLImageElement extends HTMLElement {
|
|
|
16864
16946
|
/** @deprecated */
|
|
16865
16947
|
lowsrc: string;
|
|
16866
16948
|
/**
|
|
16867
|
-
* The
|
|
16949
|
+
* The deprecated **`name`** property of the HTMLImageElement interface specifies a name for the element. It reflects the <img> element's name content attribute. It has been replaced by the id property available on all elements, and is kept only for compatibility reasons.
|
|
16868
16950
|
* @deprecated
|
|
16869
16951
|
*
|
|
16870
16952
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)
|
|
16871
16953
|
*/
|
|
16872
16954
|
name: string;
|
|
16873
16955
|
/**
|
|
16874
|
-
* The
|
|
16956
|
+
* The read-only **`naturalHeight`** property of the HTMLImageElement interface returns the intrinsic (natural), density-corrected height of the image in CSS pixels.
|
|
16875
16957
|
*
|
|
16876
16958
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)
|
|
16877
16959
|
*/
|
|
16878
16960
|
readonly naturalHeight: number;
|
|
16879
16961
|
/**
|
|
16880
|
-
* The
|
|
16962
|
+
* The read-only **`naturalWidth`** property of the HTMLImageElement interface returns the intrinsic (natural), density-corrected width of the image in CSS pixels.
|
|
16881
16963
|
*
|
|
16882
16964
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)
|
|
16883
16965
|
*/
|
|
16884
16966
|
readonly naturalWidth: number;
|
|
16885
16967
|
/**
|
|
16886
|
-
* The **`
|
|
16968
|
+
* The **`referrerPolicy`** property of the HTMLImageElement interface defining which referrer is sent when fetching the resource. It reflects the <img> element's referrerpolicy content attribute.
|
|
16887
16969
|
*
|
|
16888
16970
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy)
|
|
16889
16971
|
*/
|
|
16890
16972
|
referrerPolicy: string;
|
|
16891
16973
|
/**
|
|
16892
|
-
* The
|
|
16974
|
+
* The **`sizes`** property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries. This provides the ability to automatically select among different images—even images of different orientations or aspect ratios—as the document state changes to match different media conditions. It reflects the <img> element's sizes content attribute.
|
|
16893
16975
|
*
|
|
16894
16976
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes)
|
|
16895
16977
|
*/
|
|
16896
16978
|
sizes: string;
|
|
16897
16979
|
/**
|
|
16898
|
-
* The
|
|
16980
|
+
* The **`src`** property of the HTMLImageElement interface specifies the image to display in the <img> element. It reflects the <img> element's src content attribute.
|
|
16899
16981
|
*
|
|
16900
16982
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)
|
|
16901
16983
|
*/
|
|
16902
16984
|
src: string;
|
|
16903
16985
|
/**
|
|
16904
|
-
* The
|
|
16986
|
+
* The **`srcset`** property of the HTMLImageElement interface identifies one or more image candidate strings, separated using commas (,), each specifying image resources to use under given circumstances. Each image candidate string contains an image URL and an optional width or pixel density descriptor that indicates the conditions under which that candidate should be used instead of the image specified by the src property. It reflects the <img> element's srcset content attribute.
|
|
16905
16987
|
*
|
|
16906
16988
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset)
|
|
16907
16989
|
*/
|
|
16908
16990
|
srcset: string;
|
|
16909
16991
|
/**
|
|
16910
|
-
* The **`useMap`** property
|
|
16992
|
+
* The **`useMap`** property of the HTMLImageElement interface providing the name of the client-side image map to apply to the image. It reflects the <img> element's usemap content attribute.
|
|
16911
16993
|
*
|
|
16912
16994
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)
|
|
16913
16995
|
*/
|
|
16914
16996
|
useMap: string;
|
|
16915
16997
|
/**
|
|
16916
|
-
* The
|
|
16998
|
+
* The deprecated **`vspace`** property of the HTMLImageElement interface specifies the number of pixels of empty space to leave empty on the top and bottom sides of the <img> element when laying out the page. It reflects the <img> element's vspace content attribute.
|
|
16917
16999
|
* @deprecated
|
|
16918
17000
|
*
|
|
16919
17001
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)
|
|
16920
17002
|
*/
|
|
16921
17003
|
vspace: number;
|
|
16922
17004
|
/**
|
|
16923
|
-
* The **`width`** property of the HTMLImageElement interface indicates the width at which
|
|
17005
|
+
* The **`width`** property of the HTMLImageElement interface indicates the width at which the image is drawn, in CSS pixels, if the image is being drawn or rendered to any visual medium such as a screen or printer. Otherwise, it's the natural, pixel density-corrected width of the image.
|
|
16924
17006
|
*
|
|
16925
17007
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)
|
|
16926
17008
|
*/
|
|
16927
17009
|
width: number;
|
|
16928
17010
|
/**
|
|
16929
|
-
* The read-only
|
|
17011
|
+
* The read-only **`x`** property of the HTMLImageElement interface indicates the x-coordinate of the <img> element's left border edge relative to the root element's origin.
|
|
16930
17012
|
*
|
|
16931
17013
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x)
|
|
16932
17014
|
*/
|
|
16933
17015
|
readonly x: number;
|
|
16934
17016
|
/**
|
|
16935
|
-
* The read-onl**`y`**
|
|
17017
|
+
* The read-onl**`y`** y property of the HTMLImageElement interface indicates the y-coordinate of the <img> element's top border edge relative to the root element's origin.
|
|
16936
17018
|
*
|
|
16937
17019
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y)
|
|
16938
17020
|
*/
|
|
16939
17021
|
readonly y: number;
|
|
16940
17022
|
/**
|
|
16941
|
-
* The **`decode()`** method of the HTMLImageElement interface returns a Promise that resolves once the image is decoded and
|
|
17023
|
+
* The **`decode()`** method of the HTMLImageElement interface returns a Promise that resolves once the image is decoded and is safe to be appended to the DOM.
|
|
16942
17024
|
*
|
|
16943
17025
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode)
|
|
16944
17026
|
*/
|
|
@@ -17404,7 +17486,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
17404
17486
|
*/
|
|
17405
17487
|
as: string;
|
|
17406
17488
|
/**
|
|
17407
|
-
* The **`blocking`** property of the HTMLLinkElement
|
|
17489
|
+
* The read-only **`blocking`** property of the HTMLLinkElement returns a live DOMTokenList object containing the operations that should be blocked on the fetching of an external resource. It reflects the <link> element's blocking content attribute.
|
|
17408
17490
|
*
|
|
17409
17491
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking)
|
|
17410
17492
|
*/
|
|
@@ -17424,7 +17506,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
17424
17506
|
*/
|
|
17425
17507
|
disabled: boolean;
|
|
17426
17508
|
/**
|
|
17427
|
-
* The **`fetchPriority`** property of the HTMLLinkElement interface represents a hint to the browser indicating how it should prioritize fetching a particular resource relative to other resources of the same type. It reflects the
|
|
17509
|
+
* The **`fetchPriority`** property of the HTMLLinkElement interface represents a hint to the browser indicating how it should prioritize fetching a particular resource relative to other resources of the same type. It reflects the <link> element's fetchpriority content attribute.
|
|
17428
17510
|
*
|
|
17429
17511
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority)
|
|
17430
17512
|
*/
|
|
@@ -17478,7 +17560,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
17478
17560
|
*/
|
|
17479
17561
|
rel: string;
|
|
17480
17562
|
/**
|
|
17481
|
-
* The **`relList`**
|
|
17563
|
+
* The read-only **`relList`** property of the HTMLLinkElement returns a live DOMTokenList object containing the set of link types indicating the relationship between the resource represented by the <link> element and the current document. It reflects the <link> element's rel content attribute.
|
|
17482
17564
|
*
|
|
17483
17565
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList)
|
|
17484
17566
|
*/
|
|
@@ -17486,7 +17568,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
|
|
|
17486
17568
|
/** @deprecated */
|
|
17487
17569
|
rev: string;
|
|
17488
17570
|
/**
|
|
17489
|
-
* The **`sizes`**
|
|
17571
|
+
* The read-only **`sizes`** property of the HTMLLinkElement interface defines the sizes of the icons for visual media contained in the resource. It reflects the <link> element's sizes attribute, which takes a list of space-separated sizes, each in the format <width in pixels>x<height in pixels>, or the keyword any.
|
|
17490
17572
|
*
|
|
17491
17573
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes)
|
|
17492
17574
|
*/
|
|
@@ -18361,7 +18443,7 @@ interface HTMLOutputElement extends HTMLElement {
|
|
|
18361
18443
|
*/
|
|
18362
18444
|
readonly form: HTMLFormElement | null;
|
|
18363
18445
|
/**
|
|
18364
|
-
* The **`htmlFor`** property of the HTMLOutputElement
|
|
18446
|
+
* The read-only **`htmlFor`** property of the HTMLOutputElement returns a live DOMTokenList object containing a list of ids of those elements contributing input values to (or otherwise affected) the calculation. It reflects the <output> element's for content attribute.
|
|
18365
18447
|
*
|
|
18366
18448
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor)
|
|
18367
18449
|
*/
|
|
@@ -18596,7 +18678,7 @@ interface HTMLScriptElement extends HTMLElement {
|
|
|
18596
18678
|
*/
|
|
18597
18679
|
async: boolean;
|
|
18598
18680
|
/**
|
|
18599
|
-
* The **`blocking`** property of the HTMLScriptElement
|
|
18681
|
+
* The read-only **`blocking`** property of the HTMLScriptElement returns a live DOMTokenList object containing the operations that should be blocked on the fetching of an external resource. It reflects the <script> element's blocking content attribute.
|
|
18600
18682
|
*
|
|
18601
18683
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking)
|
|
18602
18684
|
*/
|
|
@@ -18618,7 +18700,7 @@ interface HTMLScriptElement extends HTMLElement {
|
|
|
18618
18700
|
/** @deprecated */
|
|
18619
18701
|
event: string;
|
|
18620
18702
|
/**
|
|
18621
|
-
* The **`fetchPriority`** property of the HTMLScriptElement interface represents a hint to the browser indicating how it should prioritize fetching an external script relative to other external scripts. It reflects the
|
|
18703
|
+
* The **`fetchPriority`** property of the HTMLScriptElement interface represents a hint to the browser indicating how it should prioritize fetching an external script relative to other external scripts. It reflects the <script> element's fetchpriority content attribute.
|
|
18622
18704
|
*
|
|
18623
18705
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority)
|
|
18624
18706
|
*/
|
|
@@ -18971,7 +19053,7 @@ declare var HTMLSpanElement: {
|
|
|
18971
19053
|
*/
|
|
18972
19054
|
interface HTMLStyleElement extends HTMLElement, LinkStyle {
|
|
18973
19055
|
/**
|
|
18974
|
-
* The **`blocking`** property of the HTMLStyleElement
|
|
19056
|
+
* The read-only **`blocking`** property of the HTMLStyleElement returns a live DOMTokenList object containing the operations that should be blocked on the fetching of an external resource. It reflects the <style> element's blocking content attribute.
|
|
18975
19057
|
*
|
|
18976
19058
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking)
|
|
18977
19059
|
*/
|
|
@@ -19516,7 +19598,7 @@ declare var HTMLTableSectionElement: {
|
|
|
19516
19598
|
*/
|
|
19517
19599
|
interface HTMLTemplateElement extends HTMLElement {
|
|
19518
19600
|
/**
|
|
19519
|
-
* The **`
|
|
19601
|
+
* The **`content`** property of the HTMLTemplateElement interface returns the <template> element's template contents as a DocumentFragment. This content's ownerDocument is a separate Document from the one that contains the <template> element itself — unless the containing document is itself constructed for the purpose of holding template content.
|
|
19520
19602
|
*
|
|
19521
19603
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
|
|
19522
19604
|
*/
|
|
@@ -21509,7 +21591,7 @@ declare var KeyframeEffect: {
|
|
|
21509
21591
|
*
|
|
21510
21592
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
|
|
21511
21593
|
*/
|
|
21512
|
-
interface LargestContentfulPaint extends PerformanceEntry {
|
|
21594
|
+
interface LargestContentfulPaint extends PerformanceEntry, PaintTimingMixin {
|
|
21513
21595
|
/**
|
|
21514
21596
|
* The **`element`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
|
|
21515
21597
|
*
|
|
@@ -23524,6 +23606,182 @@ declare var NamedNodeMap: {
|
|
|
23524
23606
|
new(): NamedNodeMap;
|
|
23525
23607
|
};
|
|
23526
23608
|
|
|
23609
|
+
/**
|
|
23610
|
+
* The **`NavigateEvent`** interface of the Navigation API is the event object for the navigate event, which fires when any type of navigation is initiated (this includes usage of History API features like History.go()). NavigateEvent provides access to information about that navigation, and allows developers to intercept and control the navigation handling.
|
|
23611
|
+
*
|
|
23612
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent)
|
|
23613
|
+
*/
|
|
23614
|
+
interface NavigateEvent extends Event {
|
|
23615
|
+
/**
|
|
23616
|
+
* The **`canIntercept`** read-only property of the NavigateEvent interface returns true if the navigation can be intercepted and have its URL rewritten, or false otherwise
|
|
23617
|
+
*
|
|
23618
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/canIntercept)
|
|
23619
|
+
*/
|
|
23620
|
+
readonly canIntercept: boolean;
|
|
23621
|
+
/**
|
|
23622
|
+
* The **`destination`** read-only property of the NavigateEvent interface returns a NavigationDestination object representing the destination being navigated to.
|
|
23623
|
+
*
|
|
23624
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/destination)
|
|
23625
|
+
*/
|
|
23626
|
+
readonly destination: NavigationDestination;
|
|
23627
|
+
/**
|
|
23628
|
+
* The **`downloadRequest`** read-only property of the NavigateEvent interface returns the filename of the file requested for download, in the case of a download navigation (e.g., an <a> or <area> element with a download attribute), or null otherwise.
|
|
23629
|
+
*
|
|
23630
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/downloadRequest)
|
|
23631
|
+
*/
|
|
23632
|
+
readonly downloadRequest: string | null;
|
|
23633
|
+
/**
|
|
23634
|
+
* The **`formData`** read-only property of the NavigateEvent interface returns the FormData object representing the submitted data in the case of a POST form submission, or null otherwise.
|
|
23635
|
+
*
|
|
23636
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/formData)
|
|
23637
|
+
*/
|
|
23638
|
+
readonly formData: FormData | null;
|
|
23639
|
+
/**
|
|
23640
|
+
* The **`hasUAVisualTransition`** read-only property of the NavigateEvent interface returns true if the user agent performed a visual transition for this navigation before dispatching this event, or false otherwise.
|
|
23641
|
+
*
|
|
23642
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hasUAVisualTransition)
|
|
23643
|
+
*/
|
|
23644
|
+
readonly hasUAVisualTransition: boolean;
|
|
23645
|
+
/**
|
|
23646
|
+
* The **`hashChange`** read-only property of the NavigateEvent interface returns true if the navigation is a fragment navigation (i.e., to a fragment identifier in the same document), or false otherwise.
|
|
23647
|
+
*
|
|
23648
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/hashChange)
|
|
23649
|
+
*/
|
|
23650
|
+
readonly hashChange: boolean;
|
|
23651
|
+
/**
|
|
23652
|
+
* The **`info`** read-only property of the NavigateEvent interface returns the info data value passed by the initiating navigation operation (e.g., Navigation.back(), or Navigation.navigate()), or undefined if no info data was passed.
|
|
23653
|
+
*
|
|
23654
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/info)
|
|
23655
|
+
*/
|
|
23656
|
+
readonly info: any;
|
|
23657
|
+
/**
|
|
23658
|
+
* The **`navigationType`** read-only property of the NavigateEvent interface returns the type of the navigation — push, reload, replace, or traverse.
|
|
23659
|
+
*
|
|
23660
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/navigationType)
|
|
23661
|
+
*/
|
|
23662
|
+
readonly navigationType: NavigationType;
|
|
23663
|
+
/**
|
|
23664
|
+
* The **`signal`** read-only property of the NavigateEvent interface returns an AbortSignal, which will become aborted if the navigation is cancelled (e.g., by the user pressing the browser's "Stop" button, or another navigation starting and thus cancelling the ongoing one).
|
|
23665
|
+
*
|
|
23666
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/signal)
|
|
23667
|
+
*/
|
|
23668
|
+
readonly signal: AbortSignal;
|
|
23669
|
+
/**
|
|
23670
|
+
* The **`sourceElement`** read-only property of the NavigateEvent interface returns an Element object representing the initiating element, in cases where the navigation was initiated by an element.
|
|
23671
|
+
*
|
|
23672
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/sourceElement)
|
|
23673
|
+
*/
|
|
23674
|
+
readonly sourceElement: Element | null;
|
|
23675
|
+
/**
|
|
23676
|
+
* The **`userInitiated`** read-only property of the NavigateEvent interface returns true if the navigation was initiated by the user (e.g., by clicking a link, submitting a form, or pressing the browser's "Back"/"Forward" buttons), or false otherwise.
|
|
23677
|
+
*
|
|
23678
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/userInitiated)
|
|
23679
|
+
*/
|
|
23680
|
+
readonly userInitiated: boolean;
|
|
23681
|
+
/**
|
|
23682
|
+
* The **`intercept()`** method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the destination URL.
|
|
23683
|
+
*
|
|
23684
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/intercept)
|
|
23685
|
+
*/
|
|
23686
|
+
intercept(options?: NavigationInterceptOptions): void;
|
|
23687
|
+
/**
|
|
23688
|
+
* The **`scroll()`** method of the NavigateEvent interface can be called to manually trigger the browser-driven scrolling behavior that occurs in response to the navigation, if you want it to happen before the navigation handling has completed.
|
|
23689
|
+
*
|
|
23690
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigateEvent/scroll)
|
|
23691
|
+
*/
|
|
23692
|
+
scroll(): void;
|
|
23693
|
+
}
|
|
23694
|
+
|
|
23695
|
+
declare var NavigateEvent: {
|
|
23696
|
+
prototype: NavigateEvent;
|
|
23697
|
+
new(type: string, eventInitDict: NavigateEventInit): NavigateEvent;
|
|
23698
|
+
};
|
|
23699
|
+
|
|
23700
|
+
/**
|
|
23701
|
+
* The **`Navigation`** interface of the Navigation API allows control over all navigation actions for the current window in one central place, including initiating navigations programmatically, examining navigation history entries, and managing navigations as they happen.
|
|
23702
|
+
*
|
|
23703
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation)
|
|
23704
|
+
*/
|
|
23705
|
+
interface Navigation extends EventTarget {
|
|
23706
|
+
/**
|
|
23707
|
+
* The **`activation`** read-only property of the Navigation interface returns a NavigationActivation object containing information about the most recent cross-document navigation, which "activated" this Document. The property will stay constant during same-document navigations.
|
|
23708
|
+
*
|
|
23709
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/activation)
|
|
23710
|
+
*/
|
|
23711
|
+
readonly activation: NavigationActivation | null;
|
|
23712
|
+
/**
|
|
23713
|
+
* The **`canGoBack`** read-only property of the Navigation interface returns true if it is possible to navigate backwards in the navigation history (i.e., the currentEntry is not the first one in the history entry list), and false if it is not.
|
|
23714
|
+
*
|
|
23715
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoBack)
|
|
23716
|
+
*/
|
|
23717
|
+
readonly canGoBack: boolean;
|
|
23718
|
+
/**
|
|
23719
|
+
* The **`canGoForward`** read-only property of the Navigation interface returns true if it is possible to navigate forwards in the navigation history (i.e., the currentEntry is not the last one in the history entry list), and false if it is not.
|
|
23720
|
+
*
|
|
23721
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/canGoForward)
|
|
23722
|
+
*/
|
|
23723
|
+
readonly canGoForward: boolean;
|
|
23724
|
+
/**
|
|
23725
|
+
* The **`currentEntry`** read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
|
|
23726
|
+
*
|
|
23727
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/currentEntry)
|
|
23728
|
+
*/
|
|
23729
|
+
readonly currentEntry: NavigationHistoryEntry | null;
|
|
23730
|
+
/**
|
|
23731
|
+
* The **`transition`** read-only property of the Navigation interface returns a NavigationTransition object representing the status of an in-progress navigation, which can be used to track it.
|
|
23732
|
+
*
|
|
23733
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/transition)
|
|
23734
|
+
*/
|
|
23735
|
+
readonly transition: NavigationTransition | null;
|
|
23736
|
+
/**
|
|
23737
|
+
* The **`back()`** method of the Navigation interface navigates backwards by one entry in the navigation history.
|
|
23738
|
+
*
|
|
23739
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/back)
|
|
23740
|
+
*/
|
|
23741
|
+
back(options?: NavigationOptions): NavigationResult;
|
|
23742
|
+
/**
|
|
23743
|
+
* The **`entries()`** method of the Navigation interface returns an array of NavigationHistoryEntry objects representing all existing history entries.
|
|
23744
|
+
*
|
|
23745
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/entries)
|
|
23746
|
+
*/
|
|
23747
|
+
entries(): NavigationHistoryEntry[];
|
|
23748
|
+
/**
|
|
23749
|
+
* The **`forward()`** method of the Navigation interface navigates forwards by one entry in the navigation history.
|
|
23750
|
+
*
|
|
23751
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/forward)
|
|
23752
|
+
*/
|
|
23753
|
+
forward(options?: NavigationOptions): NavigationResult;
|
|
23754
|
+
/**
|
|
23755
|
+
* The **`navigate()`** method of the Navigation interface navigates to a specific URL, updating any provided state in the history entries list.
|
|
23756
|
+
*
|
|
23757
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/navigate)
|
|
23758
|
+
*/
|
|
23759
|
+
navigate(url: string | URL, options?: NavigationNavigateOptions): NavigationResult;
|
|
23760
|
+
/**
|
|
23761
|
+
* The **`reload()`** method of the Navigation interface reloads the current URL, updating any provided state in the history entries list.
|
|
23762
|
+
*
|
|
23763
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/reload)
|
|
23764
|
+
*/
|
|
23765
|
+
reload(options?: NavigationReloadOptions): NavigationResult;
|
|
23766
|
+
/**
|
|
23767
|
+
* The **`traverseTo()`** method of the Navigation interface navigates to the NavigationHistoryEntry identified by the given key.
|
|
23768
|
+
*
|
|
23769
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/traverseTo)
|
|
23770
|
+
*/
|
|
23771
|
+
traverseTo(key: string, options?: NavigationOptions): NavigationResult;
|
|
23772
|
+
/**
|
|
23773
|
+
* The **`updateCurrentEntry()`** method of the Navigation interface updates the state of the currentEntry; used in cases where the state change will be independent of a navigation or reload.
|
|
23774
|
+
*
|
|
23775
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigation/updateCurrentEntry)
|
|
23776
|
+
*/
|
|
23777
|
+
updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;
|
|
23778
|
+
}
|
|
23779
|
+
|
|
23780
|
+
declare var Navigation: {
|
|
23781
|
+
prototype: Navigation;
|
|
23782
|
+
new(): Navigation;
|
|
23783
|
+
};
|
|
23784
|
+
|
|
23527
23785
|
/**
|
|
23528
23786
|
* The **`NavigationActivation`** interface of the Navigation API represents a recent cross-document navigation. It contains the navigation type and outgoing and inbound document history entries.
|
|
23529
23787
|
*
|
|
@@ -23555,6 +23813,80 @@ declare var NavigationActivation: {
|
|
|
23555
23813
|
new(): NavigationActivation;
|
|
23556
23814
|
};
|
|
23557
23815
|
|
|
23816
|
+
/**
|
|
23817
|
+
* The **`NavigationCurrentEntryChangeEvent`** interface of the Navigation API is the event object for the currententrychange event, which fires when the Navigation.currentEntry has changed.
|
|
23818
|
+
*
|
|
23819
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent)
|
|
23820
|
+
*/
|
|
23821
|
+
interface NavigationCurrentEntryChangeEvent extends Event {
|
|
23822
|
+
/**
|
|
23823
|
+
* The **`from`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the NavigationHistoryEntry that was navigated from.
|
|
23824
|
+
*
|
|
23825
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/from)
|
|
23826
|
+
*/
|
|
23827
|
+
readonly from: NavigationHistoryEntry;
|
|
23828
|
+
/**
|
|
23829
|
+
* The **`navigationType`** read-only property of the NavigationCurrentEntryChangeEvent interface returns the type of the navigation that resulted in the change. The property may be null if the change occurs due to Navigation.updateCurrentEntry().
|
|
23830
|
+
*
|
|
23831
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationCurrentEntryChangeEvent/navigationType)
|
|
23832
|
+
*/
|
|
23833
|
+
readonly navigationType: NavigationType | null;
|
|
23834
|
+
}
|
|
23835
|
+
|
|
23836
|
+
declare var NavigationCurrentEntryChangeEvent: {
|
|
23837
|
+
prototype: NavigationCurrentEntryChangeEvent;
|
|
23838
|
+
new(type: string, eventInitDict: NavigationCurrentEntryChangeEventInit): NavigationCurrentEntryChangeEvent;
|
|
23839
|
+
};
|
|
23840
|
+
|
|
23841
|
+
/**
|
|
23842
|
+
* The **`NavigationDestination`** interface of the Navigation API represents the destination being navigated to in the current navigation.
|
|
23843
|
+
*
|
|
23844
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination)
|
|
23845
|
+
*/
|
|
23846
|
+
interface NavigationDestination {
|
|
23847
|
+
/**
|
|
23848
|
+
* The **`id`** read-only property of the NavigationDestination interface returns the id value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or an empty string otherwise.
|
|
23849
|
+
*
|
|
23850
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/id)
|
|
23851
|
+
*/
|
|
23852
|
+
readonly id: string;
|
|
23853
|
+
/**
|
|
23854
|
+
* The **`index`** read-only property of the NavigationDestination interface returns the index value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or -1 otherwise.
|
|
23855
|
+
*
|
|
23856
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/index)
|
|
23857
|
+
*/
|
|
23858
|
+
readonly index: number;
|
|
23859
|
+
/**
|
|
23860
|
+
* The **`key`** read-only property of the NavigationDestination interface returns the key value of the destination NavigationHistoryEntry if the NavigateEvent.navigationType is traverse, or an empty string otherwise.
|
|
23861
|
+
*
|
|
23862
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/key)
|
|
23863
|
+
*/
|
|
23864
|
+
readonly key: string;
|
|
23865
|
+
/**
|
|
23866
|
+
* The **`sameDocument`** read-only property of the NavigationDestination interface returns true if the navigation is to the same document as the current Document value, or false otherwise.
|
|
23867
|
+
*
|
|
23868
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/sameDocument)
|
|
23869
|
+
*/
|
|
23870
|
+
readonly sameDocument: boolean;
|
|
23871
|
+
/**
|
|
23872
|
+
* The **`url`** read-only property of the NavigationDestination interface returns the URL being navigated to.
|
|
23873
|
+
*
|
|
23874
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/url)
|
|
23875
|
+
*/
|
|
23876
|
+
readonly url: string;
|
|
23877
|
+
/**
|
|
23878
|
+
* The **`getState()`** method of the NavigationDestination interface returns a clone of the developer-supplied state associated with the destination NavigationHistoryEntry, or navigation operation (e.g., navigate()) as appropriate.
|
|
23879
|
+
*
|
|
23880
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationDestination/getState)
|
|
23881
|
+
*/
|
|
23882
|
+
getState(): any;
|
|
23883
|
+
}
|
|
23884
|
+
|
|
23885
|
+
declare var NavigationDestination: {
|
|
23886
|
+
prototype: NavigationDestination;
|
|
23887
|
+
new(): NavigationDestination;
|
|
23888
|
+
};
|
|
23889
|
+
|
|
23558
23890
|
interface NavigationHistoryEntryEventMap {
|
|
23559
23891
|
"dispose": Event;
|
|
23560
23892
|
}
|
|
@@ -23614,6 +23946,25 @@ declare var NavigationHistoryEntry: {
|
|
|
23614
23946
|
new(): NavigationHistoryEntry;
|
|
23615
23947
|
};
|
|
23616
23948
|
|
|
23949
|
+
/**
|
|
23950
|
+
* The **`NavigationPrecommitController`** interface of the Navigation API defines redirect behavior for a navigation precommit handler.
|
|
23951
|
+
*
|
|
23952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
23953
|
+
*/
|
|
23954
|
+
interface NavigationPrecommitController {
|
|
23955
|
+
/**
|
|
23956
|
+
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
23957
|
+
*
|
|
23958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/redirect)
|
|
23959
|
+
*/
|
|
23960
|
+
redirect(url: string | URL, options?: NavigationNavigateOptions): void;
|
|
23961
|
+
}
|
|
23962
|
+
|
|
23963
|
+
declare var NavigationPrecommitController: {
|
|
23964
|
+
prototype: NavigationPrecommitController;
|
|
23965
|
+
new(): NavigationPrecommitController;
|
|
23966
|
+
};
|
|
23967
|
+
|
|
23617
23968
|
/**
|
|
23618
23969
|
* The **`NavigationPreloadManager`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
|
|
23619
23970
|
* Available only in secure contexts.
|
|
@@ -23652,6 +24003,38 @@ declare var NavigationPreloadManager: {
|
|
|
23652
24003
|
new(): NavigationPreloadManager;
|
|
23653
24004
|
};
|
|
23654
24005
|
|
|
24006
|
+
/**
|
|
24007
|
+
* The **`NavigationTransition`** interface of the Navigation API represents an ongoing navigation, that is, a navigation that hasn't yet reached the navigatesuccess or navigateerror stage.
|
|
24008
|
+
*
|
|
24009
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition)
|
|
24010
|
+
*/
|
|
24011
|
+
interface NavigationTransition {
|
|
24012
|
+
readonly committed: Promise<void>;
|
|
24013
|
+
/**
|
|
24014
|
+
* The **`finished`** read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.
|
|
24015
|
+
*
|
|
24016
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/finished)
|
|
24017
|
+
*/
|
|
24018
|
+
readonly finished: Promise<void>;
|
|
24019
|
+
/**
|
|
24020
|
+
* The **`from`** read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.
|
|
24021
|
+
*
|
|
24022
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/from)
|
|
24023
|
+
*/
|
|
24024
|
+
readonly from: NavigationHistoryEntry;
|
|
24025
|
+
/**
|
|
24026
|
+
* The **`navigationType`** read-only property of the NavigationTransition interface returns the type of the ongoing navigation.
|
|
24027
|
+
*
|
|
24028
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationTransition/navigationType)
|
|
24029
|
+
*/
|
|
24030
|
+
readonly navigationType: NavigationType;
|
|
24031
|
+
}
|
|
24032
|
+
|
|
24033
|
+
declare var NavigationTransition: {
|
|
24034
|
+
prototype: NavigationTransition;
|
|
24035
|
+
new(): NavigationTransition;
|
|
24036
|
+
};
|
|
24037
|
+
|
|
23655
24038
|
/**
|
|
23656
24039
|
* The **`Navigator`** interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.
|
|
23657
24040
|
*
|
|
@@ -23995,7 +24378,7 @@ interface Node extends EventTarget {
|
|
|
23995
24378
|
*/
|
|
23996
24379
|
appendChild<T extends Node>(node: T): T;
|
|
23997
24380
|
/**
|
|
23998
|
-
* The **`cloneNode()`** method of the Node interface returns a duplicate of the node on which this method was called. Its parameter controls if the subtree contained in
|
|
24381
|
+
* The **`cloneNode()`** method of the Node interface returns a duplicate of the node on which this method was called. Its parameter controls if the subtree contained in the node is also cloned or not.
|
|
23999
24382
|
*
|
|
24000
24383
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
|
|
24001
24384
|
*/
|
|
@@ -24794,6 +25177,11 @@ declare var PageTransitionEvent: {
|
|
|
24794
25177
|
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
|
|
24795
25178
|
};
|
|
24796
25179
|
|
|
25180
|
+
interface PaintTimingMixin {
|
|
25181
|
+
readonly paintTime: DOMHighResTimeStamp;
|
|
25182
|
+
readonly presentationTime: DOMHighResTimeStamp | null;
|
|
25183
|
+
}
|
|
25184
|
+
|
|
24797
25185
|
/**
|
|
24798
25186
|
* The **`PannerNode`** interface defines an audio-processing object that represents the location, direction, and behavior of an audio source signal in a simulated physical space. This AudioNode uses right-hand Cartesian coordinates to describe the source's position as a vector and its orientation as a 3D directional cone.
|
|
24799
25187
|
*
|
|
@@ -25309,6 +25697,7 @@ interface Performance extends EventTarget {
|
|
|
25309
25697
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
|
|
25310
25698
|
*/
|
|
25311
25699
|
readonly eventCounts: EventCounts;
|
|
25700
|
+
readonly interactionCount: number;
|
|
25312
25701
|
/**
|
|
25313
25702
|
* The legacy **`Performance.navigation`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
|
|
25314
25703
|
* @deprecated
|
|
@@ -25734,7 +26123,7 @@ declare var PerformanceObserverEntryList: {
|
|
|
25734
26123
|
*
|
|
25735
26124
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
|
|
25736
26125
|
*/
|
|
25737
|
-
interface PerformancePaintTiming extends PerformanceEntry {
|
|
26126
|
+
interface PerformancePaintTiming extends PerformanceEntry, PaintTimingMixin {
|
|
25738
26127
|
toJSON(): any;
|
|
25739
26128
|
}
|
|
25740
26129
|
|
|
@@ -28631,6 +29020,19 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
28631
29020
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
|
|
28632
29021
|
*/
|
|
28633
29022
|
download: string;
|
|
29023
|
+
/**
|
|
29024
|
+
* The **`hreflang`** property of the SVGAElement interface returns a string indicating the language of the linked resource.
|
|
29025
|
+
*
|
|
29026
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/hreflang)
|
|
29027
|
+
*/
|
|
29028
|
+
hreflang: string;
|
|
29029
|
+
/**
|
|
29030
|
+
* The **`ping`** property of the SVGAElement interface returns a string that reflects the ping attribute, containing a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking.
|
|
29031
|
+
*
|
|
29032
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/ping)
|
|
29033
|
+
*/
|
|
29034
|
+
ping: string;
|
|
29035
|
+
referrerPolicy: string;
|
|
28634
29036
|
/**
|
|
28635
29037
|
* The **`rel`** property of the SVGAElement returns a string reflecting the value of the rel attribute of the SVG <a> element.
|
|
28636
29038
|
*
|
|
@@ -28638,7 +29040,7 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
28638
29040
|
*/
|
|
28639
29041
|
rel: string;
|
|
28640
29042
|
/**
|
|
28641
|
-
* The **`relList`**
|
|
29043
|
+
* The read-only **`relList`** property of the SVGAElement returns a live DOMTokenList reflecting the space-separated string <list-of-Link-Types> values of the rel attribute of the SVG <a> element.
|
|
28642
29044
|
*
|
|
28643
29045
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/relList)
|
|
28644
29046
|
*/
|
|
@@ -28649,6 +29051,12 @@ interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
|
|
|
28649
29051
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)
|
|
28650
29052
|
*/
|
|
28651
29053
|
readonly target: SVGAnimatedString;
|
|
29054
|
+
/**
|
|
29055
|
+
* The **`type`** property of the SVGAElement interface returns a string indicating the MIME type of the linked resource.
|
|
29056
|
+
*
|
|
29057
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/type)
|
|
29058
|
+
*/
|
|
29059
|
+
type: string;
|
|
28652
29060
|
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
28653
29061
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
28654
29062
|
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -33917,7 +34325,7 @@ interface StyleSheet {
|
|
|
33917
34325
|
*/
|
|
33918
34326
|
readonly href: string | null;
|
|
33919
34327
|
/**
|
|
33920
|
-
* The **`media`** property of the StyleSheet interface
|
|
34328
|
+
* The read-only **`media`** property of the StyleSheet interface contains a MediaList object representing the intended destination media for style information.
|
|
33921
34329
|
*
|
|
33922
34330
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media)
|
|
33923
34331
|
*/
|
|
@@ -34229,14 +34637,14 @@ interface TextDecoderCommon {
|
|
|
34229
34637
|
}
|
|
34230
34638
|
|
|
34231
34639
|
/**
|
|
34232
|
-
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder.
|
|
34640
|
+
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
34233
34641
|
*
|
|
34234
34642
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
34235
34643
|
*/
|
|
34236
34644
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
34237
|
-
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
34645
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream that emits decoded strings. */
|
|
34238
34646
|
readonly readable: ReadableStream<string>;
|
|
34239
|
-
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
34647
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream that accepts binary data, in the form of ArrayBuffer, TypedArray, or DataView chunks (SharedArrayBuffer and its views are also allowed), to be decoded into strings. */
|
|
34240
34648
|
readonly writable: WritableStream<BufferSource>;
|
|
34241
34649
|
}
|
|
34242
34650
|
|
|
@@ -34280,14 +34688,14 @@ interface TextEncoderCommon {
|
|
|
34280
34688
|
}
|
|
34281
34689
|
|
|
34282
34690
|
/**
|
|
34283
|
-
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder.
|
|
34691
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder. It implements the same shape as a TransformStream, allowing it to be used in ReadableStream.pipeThrough() and similar methods.
|
|
34284
34692
|
*
|
|
34285
34693
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
34286
34694
|
*/
|
|
34287
34695
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
34288
|
-
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
34696
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream that emits encoded binary data as Uint8Array chunks. */
|
|
34289
34697
|
readonly readable: ReadableStream<Uint8Array>;
|
|
34290
|
-
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
34698
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream that accepts strings to be encoded into binary data. */
|
|
34291
34699
|
readonly writable: WritableStream<string>;
|
|
34292
34700
|
}
|
|
34293
34701
|
|
|
@@ -34871,13 +35279,13 @@ declare var TrackEvent: {
|
|
|
34871
35279
|
*/
|
|
34872
35280
|
interface TransformStream<I = any, O = any> {
|
|
34873
35281
|
/**
|
|
34874
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
35282
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.
|
|
34875
35283
|
*
|
|
34876
35284
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
34877
35285
|
*/
|
|
34878
35286
|
readonly readable: ReadableStream<O>;
|
|
34879
35287
|
/**
|
|
34880
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
35288
|
+
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream. This stream accepts input data that will be transformed and emitted to the readable stream.
|
|
34881
35289
|
*
|
|
34882
35290
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
34883
35291
|
*/
|
|
@@ -35952,7 +36360,7 @@ interface VisualViewportEventMap {
|
|
|
35952
36360
|
}
|
|
35953
36361
|
|
|
35954
36362
|
/**
|
|
35955
|
-
* The **`VisualViewport`** interface of the
|
|
36363
|
+
* The **`VisualViewport`** interface of the CSSOM view API represents the visual viewport for a given window. For a page containing iframes, each iframe, as well as the containing page, will have a unique window object. Each window on a page will have a unique VisualViewport representing the properties associated with that window.
|
|
35956
36364
|
*
|
|
35957
36365
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport)
|
|
35958
36366
|
*/
|
|
@@ -39001,7 +39409,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
39001
39409
|
*/
|
|
39002
39410
|
readonly length: number;
|
|
39003
39411
|
/**
|
|
39004
|
-
* The **`
|
|
39412
|
+
* The read-only **`location`** property of the Window interface returns a Location object with information about the current location of the document.
|
|
39005
39413
|
*
|
|
39006
39414
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)
|
|
39007
39415
|
*/
|
|
@@ -39025,6 +39433,12 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
39025
39433
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
|
|
39026
39434
|
*/
|
|
39027
39435
|
name: string;
|
|
39436
|
+
/**
|
|
39437
|
+
* The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
|
|
39438
|
+
*
|
|
39439
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
|
|
39440
|
+
*/
|
|
39441
|
+
readonly navigation: Navigation;
|
|
39028
39442
|
/**
|
|
39029
39443
|
* The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
|
|
39030
39444
|
*
|
|
@@ -39425,7 +39839,7 @@ interface WindowEventHandlers {
|
|
|
39425
39839
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
39426
39840
|
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
|
|
39427
39841
|
/**
|
|
39428
|
-
* @deprecated
|
|
39842
|
+
* @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
|
|
39429
39843
|
*
|
|
39430
39844
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
39431
39845
|
*/
|
|
@@ -40712,6 +41126,14 @@ interface MutationCallback {
|
|
|
40712
41126
|
(mutations: MutationRecord[], observer: MutationObserver): void;
|
|
40713
41127
|
}
|
|
40714
41128
|
|
|
41129
|
+
interface NavigationInterceptHandler {
|
|
41130
|
+
(): void | PromiseLike<void>;
|
|
41131
|
+
}
|
|
41132
|
+
|
|
41133
|
+
interface NavigationPrecommitHandler {
|
|
41134
|
+
(controller: NavigationPrecommitController): void | PromiseLike<void>;
|
|
41135
|
+
}
|
|
41136
|
+
|
|
40715
41137
|
interface NotificationPermissionCallback {
|
|
40716
41138
|
(permission: NotificationPermission): void;
|
|
40717
41139
|
}
|
|
@@ -41169,7 +41591,7 @@ declare var innerWidth: number;
|
|
|
41169
41591
|
*/
|
|
41170
41592
|
declare var length: number;
|
|
41171
41593
|
/**
|
|
41172
|
-
* The **`
|
|
41594
|
+
* The read-only **`location`** property of the Window interface returns a Location object with information about the current location of the document.
|
|
41173
41595
|
*
|
|
41174
41596
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)
|
|
41175
41597
|
*/
|
|
@@ -41193,6 +41615,12 @@ declare var menubar: BarProp;
|
|
|
41193
41615
|
*/
|
|
41194
41616
|
/** @deprecated */
|
|
41195
41617
|
declare const name: void;
|
|
41618
|
+
/**
|
|
41619
|
+
* The **`navigation`** read-only property of the Window interface returns the current window's associated Navigation object.
|
|
41620
|
+
*
|
|
41621
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigation)
|
|
41622
|
+
*/
|
|
41623
|
+
declare var navigation: Navigation;
|
|
41196
41624
|
/**
|
|
41197
41625
|
* The **`Window.navigator`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
|
|
41198
41626
|
*
|
|
@@ -41794,7 +42222,7 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
|
41794
42222
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
|
|
41795
42223
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
41796
42224
|
/**
|
|
41797
|
-
* @deprecated
|
|
42225
|
+
* @deprecated The unload event is not reliable, consider visibilitychange or pagehide events.
|
|
41798
42226
|
*
|
|
41799
42227
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
|
|
41800
42228
|
*/
|
|
@@ -42030,6 +42458,9 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
|
|
|
42030
42458
|
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
|
|
42031
42459
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
42032
42460
|
type MediaStreamTrackState = "ended" | "live";
|
|
42461
|
+
type NavigationFocusReset = "after-transition" | "manual";
|
|
42462
|
+
type NavigationHistoryBehavior = "auto" | "push" | "replace";
|
|
42463
|
+
type NavigationScrollBehavior = "after-transition" | "manual";
|
|
42033
42464
|
type NavigationTimingType = "back_forward" | "navigate" | "reload";
|
|
42034
42465
|
type NavigationType = "push" | "reload" | "replace" | "traverse";
|
|
42035
42466
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|