You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,9 @@ The common steps to send a pull request are:
53
53
54
54
### What are the TypeScript team's heuristics for PRs to the DOM APIs
55
55
56
-
Changes to this repo can have pretty drastic ecosystem effects, because these types are included by default in TypeScript.
56
+
Changes to this repo can have pretty drastic ecosystem effects, because these types are included by default in TypeScript.
57
57
Due to this, we tend to be quite conservative with our approach to introducing changes.
58
-
To give you a sense of whether we will accept changes, you can use these heuristics to know up-front if we'll be open to merging.
58
+
To give you a sense of whether we will accept changes, you can use these heuristics to know up-front if we'll be open to merging.
59
59
60
60
#### Fixes
61
61
@@ -71,9 +71,9 @@ To give you a sense of whether we will accept changes, you can use these heurist
71
71
> For example, adding a new spec or subsection via a new or updated IDL file
72
72
73
73
- Does the new objects or fields show up in [mdn/browser-compat-data](https://github.com/mdn/browser-compat-data)? If not, it's likely too soon.
74
-
- Is the IDL source from WHATWG?
74
+
- Is the IDL source from WHATWG?
75
75
- Are the additions available in at least two of Firefox, Safari and Chromium?
76
-
- Is the IDL source from W3C?
76
+
- Is the IDL source from W3C?
77
77
- What stage of the [W3C process](https://en.wikipedia.org/wiki/World_Wide_Web_Consortium#Specification_maturation) is the proposal for these changes: We aim for Proposed recommendation, but can accept Candidate recommendation for stable looking proposals.
78
78
- If it's at Working draft the additions available in all three of Firefox, Safari and Chromium
79
79
- Could any types added at the global scope have naming conflicts?
@@ -103,3 +103,4 @@ To give you a sense of whether we will accept changes, you can use these heurist
103
103
-`overridingTypes.json`: types that are defined in the spec file but has a better or more up-to-date definitions in the json files.
104
104
-`removedTypes.json`: types that are defined in the spec file but should be removed.
105
105
-`comments.json`: comment strings to be embedded in the generated .js files.
106
+
-`deprecatedMessage.json`: the reason why one type is deprecated. The reason why it is a separate file rather than merge in comment.json is mdn/apiDescriptions.json would also possibly be deprecated.
Copy file name to clipboardExpand all lines: baselines/dom.generated.d.ts
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2330,7 +2330,9 @@ declare var AudioParamMap: {
2330
2330
new(): AudioParamMap;
2331
2331
};
2332
2332
2333
-
/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. */
2333
+
/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
2334
+
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
/** Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes. */
10567
+
/** Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
10568
+
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface. */
10566
10569
interface MutationEvent extends Event {
10567
10570
readonly attrChange: number;
10568
10571
readonly attrName: string;
@@ -11548,7 +11551,9 @@ declare var PerformanceMeasure: {
11548
11551
new(): PerformanceMeasure;
11549
11552
};
11550
11553
11551
-
/** The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done. */
11554
+
/** The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
11555
+
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
11556
+
*/
11552
11557
interface PerformanceNavigation {
11553
11558
readonly redirectCount: number;
11554
11559
readonly type: number;
@@ -11638,7 +11643,9 @@ declare var PerformanceResourceTiming: {
11638
11643
new(): PerformanceResourceTiming;
11639
11644
};
11640
11645
11641
-
/** A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property. */
11646
+
/** A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
11647
+
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
/** Allows the generation, processing, or analyzing of audio using JavaScript. */
14830
+
/** Allows the generation, processing, or analyzing of audio using JavaScript.
14831
+
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
14832
+
*/
14824
14833
interface ScriptProcessorNode extends AudioNode {
14825
14834
/** @deprecated */
14826
14835
readonly bufferSize: number;
@@ -14944,7 +14953,9 @@ declare var ServiceWorkerContainer: {
14944
14953
new(): ServiceWorkerContainer;
14945
14954
};
14946
14955
14947
-
/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker. */
14956
+
/** This ServiceWorker API interface contains information about an event sent to a ServiceWorkerContainer target. This extends the default message event to allow setting a ServiceWorker object as the source of a message. The event object is accessed via the handler function of a message event, when fired by a message received from a service worker.
14957
+
* @deprecated In modern browsers, this interface has been deprecated. Service worker messages will now use the MessageEvent interface, for consistency with other web messaging features.
"MutationEvent": "DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.",
3
+
"SVGAltGlyphItemElement": "This interface was removed in the SVG 2 specification.\n",
4
+
"PerformanceTiming": "This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n",
5
+
"MouseScrollEvent": "Do not use this interface for wheel events.Like MouseWheelEvent, this interface is non-standard and deprecated. It was used in Gecko-based browsers only. Instead use the standard WheelEvent.\n",
6
+
"SVGAltGlyphDefElement": "This interface was removed in the SVG 2 specification.\n",
7
+
"SVGExternalResourcesRequired": "This interface was removed in the SVG 2 specification.\n",
8
+
"SVGMatrix": "SVG 2 replaced the SVGMatrix interface by the more general DOMMatrix and DOMMatrixReadOnly interfaces.\n",
9
+
"RTCSessionDescriptionCallback": "Because this function type is part of the legacy WebRTC API, you should avoid using it (and the callback-based forms of createOffer() and createAnswer() that make use of it).\n",
10
+
"ServiceWorkerMessageEvent": "In modern browsers, this interface has been deprecated. Service worker messages will now use the MessageEvent interface, for consistency with other web messaging features.\n",
11
+
"SVGRenderingIntent": "This interface was removed in the SVG 2 specification.\n",
12
+
"PerformanceNavigation": "This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.\n",
13
+
"AudioProcessingEvent": "As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.\n",
14
+
"ScriptProcessorNode": "As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).\n",
15
+
"SVGGlyphElement": "This interface was removed in the SVG 2 specification.\n",
16
+
"MouseWheelEvent": "Do not use this interface for wheel events.Like MouseScrollEvent, this interface is non-standard and deprecated. It was used in non-Gecko browsers only. Instead use the standard WheelEvent.\n",
17
+
"IDBDatabaseException": "This interface was removed from the specification and was replaced by usage of DOMException.\n",
18
+
"NameList": "Although this interface was previously implemented in Gecko, there was no way to actually create one. NameList has been removed, effective with Gecko 10.0\n",
19
+
"IDBDatabaseSync": "The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.\n",
20
+
"IDBEnvironment": "The indexedDB property that was previously defined in this mixin is instead now WindowOrWorkerGlobalScope.indexedDB (that is, defined as a member of the WindowOrWorkerGlobalScope mixin).\n",
21
+
"IDBFactorySync": "The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.\n",
22
+
"IDBVersionChangeRequest": "The latest specification does not include this interface anymore as the IDBDatabase.setVersion() method has been removed. See the compatibility table for version details.The new way to do it is to use the IDBOpenDBRequest interface which has now the onblocked handler and the newly needed onupgradeneeded one.\n",
23
+
"IDBIndexSync": "The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.\n",
24
+
"IDBTransactionSync": "The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.\n",
25
+
"IDBEnvironmentSync": "The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.\n",
26
+
"DOMLocator": "This is not implemented in Mozilla\n",
27
+
"LocalMediaStream": "This interface is no longer available in any mainstream browser. Do not use LocalMediaStream; you need to update any code that does use it as soon as possible or your content or application will stop working. See Stopping a video stream in MediaStreamTrack to learn how. All other functionality is found in MediaStream.\n",
28
+
"IDBObjectStoreSync": "The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.\n",
29
+
"BlobBuilder": "The BlobBuilder interface has been deprecated in favor of the newly introduced Blob constructor.\n",
30
+
"IDBCursorSync": "The synchronous version of the IndexedDB API was originally intended for use only with Web Workers, and was eventually removed from the spec because its need was questionable. It may however be reintroduced in the future if there is enough demand from web developers.\n",
31
+
"DOMConfiguration": "This interface has never been supported in Gecko, and has been removed from the DOM specification.\n",
32
+
"FileError": "This interface is obsolete per the latest specification. Use the new DOM4 DOMError interface instead.\n"
0 commit comments