Skip to content

Commit 11d922f

Browse files
authored
Restore HTMLDialogElement exposure (#1259)
Co-authored-by: saschanaz <[email protected]>
1 parent 4ef9269 commit 11d922f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

baselines/dom.generated.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6149,7 +6149,6 @@ declare var HTMLDetailsElement: {
61496149
new(): HTMLDetailsElement;
61506150
};
61516151

6152-
/** @deprecated this is not available in most browsers */
61536152
interface HTMLDialogElement extends HTMLElement {
61546153
open: boolean;
61556154
returnValue: string;
@@ -6168,6 +6167,11 @@ interface HTMLDialogElement extends HTMLElement {
61686167
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
61696168
}
61706169

6170+
declare var HTMLDialogElement: {
6171+
prototype: HTMLDialogElement;
6172+
new(): HTMLDialogElement;
6173+
};
6174+
61716175
/** @deprecated */
61726176
interface HTMLDirectoryElement extends HTMLElement {
61736177
/** @deprecated */

inputfiles/addedTypes.jsonc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,6 @@
375375
"deprecated": "prefer HTMLTableCellElement",
376376
"exposed": "Window"
377377
},
378-
"HTMLDialogElement": {
379-
"name": "HTMLDialogElement",
380-
"noInterfaceObject": true,
381-
"deprecated": "this is not available in most browsers",
382-
"exposed": "Window"
383-
},
384378
"OffscreenCanvas": {
385379
"name": "OffscreenCanvas",
386380
"noInterfaceObject": true,

0 commit comments

Comments
 (0)