Skip to content

Commit c0caf23

Browse files
authored
Merge pull request #282 from arjunyel/missingElements
Added HTML main, details, and summary elements
2 parents 7cc695c + f7d959b commit c0caf23

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14232,6 +14232,36 @@ interface HTMLDialogElement extends HTMLElement {
1423214232
showModal(): void;
1423314233
}
1423414234

14235+
declare var HTMLDialogElement: {
14236+
prototype: HTMLDialogElement;
14237+
new(): HTMLDialogElement;
14238+
};
14239+
14240+
interface HTMLMainElement extends HTMLElement {
14241+
}
14242+
14243+
declare var HTMLMainElement: {
14244+
prototype: HTMLMainElement;
14245+
new(): HTMLMainElement;
14246+
};
14247+
14248+
interface HTMLDetailsElement extends HTMLElement {
14249+
open: boolean;
14250+
}
14251+
14252+
declare var HTMLDetailsElement: {
14253+
prototype: HTMLDetailsElement;
14254+
new(): HTMLDetailsElement;
14255+
};
14256+
14257+
interface HTMLSummaryElement extends HTMLElement {
14258+
}
14259+
14260+
declare var HTMLSummaryElement: {
14261+
prototype: HTMLSummaryElement;
14262+
new(): HTMLSummaryElement;
14263+
};
14264+
1423514265
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
1423614266

1423714267
interface DecodeErrorCallback {

inputfiles/addedTypes.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,7 @@
17031703
{
17041704
"kind": "interface",
17051705
"name": "HTMLDialogElement",
1706+
"constructorSignatures": ["new(): HTMLDialogElement"],
17061707
"extends": "HTMLElement",
17071708
"flavor": "DOM",
17081709
"properties": [
@@ -1736,5 +1737,32 @@
17361737
"name": "redirected",
17371738
"readonly": true,
17381739
"type": "boolean"
1740+
},
1741+
{
1742+
"kind": "interface",
1743+
"name": "HTMLMainElement",
1744+
"constructorSignatures": ["new(): HTMLMainElement"],
1745+
"extends": "HTMLElement",
1746+
"flavor": "DOM"
1747+
},
1748+
{
1749+
"kind": "interface",
1750+
"name": "HTMLDetailsElement",
1751+
"constructorSignatures": ["new(): HTMLDetailsElement"],
1752+
"extends": "HTMLElement",
1753+
"flavor": "DOM",
1754+
"properties": [
1755+
{
1756+
"name": "open",
1757+
"type": "boolean"
1758+
}
1759+
]
1760+
},
1761+
{
1762+
"kind": "interface",
1763+
"name": "HTMLSummaryElement",
1764+
"constructorSignatures": ["new(): HTMLSummaryElement"],
1765+
"extends": "HTMLElement",
1766+
"flavor": "DOM"
17391767
}
17401768
]

0 commit comments

Comments
 (0)