Skip to content

Commit 253d423

Browse files
saschanazsandersn
authored andcommitted
Add HTML Sections types (#805)
1 parent b0ce60b commit 253d423

File tree

5 files changed

+44
-15
lines changed

5 files changed

+44
-15
lines changed

baselines/dom.generated.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6428,12 +6428,9 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
64286428
background: string;
64296429
/** @deprecated */
64306430
bgColor: string;
6431-
bgProperties: string;
64326431
/** @deprecated */
64336432
link: string;
64346433
/** @deprecated */
6435-
noWrap: boolean;
6436-
/** @deprecated */
64376434
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
64386435
/** @deprecated */
64396436
text: string;

inputfiles/addedTypes.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,13 @@
11291129
}
11301130
]
11311131
},
1132+
"HTMLBodyElement": {
1133+
"element": [
1134+
{
1135+
"name": "body"
1136+
}
1137+
]
1138+
},
11321139
"HTMLBRElement": {
11331140
"element": [
11341141
{
@@ -1313,6 +1320,28 @@
13131320
}
13141321
]
13151322
},
1323+
"HTMLHeadingElement": {
1324+
"element": [
1325+
{
1326+
"name": "h1"
1327+
},
1328+
{
1329+
"name": "h2"
1330+
},
1331+
{
1332+
"name": "h3"
1333+
},
1334+
{
1335+
"name": "h4"
1336+
},
1337+
{
1338+
"name": "h5"
1339+
},
1340+
{
1341+
"name": "h6"
1342+
}
1343+
]
1344+
},
13161345
"HTMLHRElement": {
13171346
"element": [
13181347
{

inputfiles/idl/HTML - Sections.widl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Exposed=Window]
2+
interface HTMLBodyElement : HTMLElement {
3+
[HTMLConstructor] constructor();
4+
};
5+
6+
HTMLBodyElement includes WindowEventHandlers;
7+
8+
[Exposed=Window]
9+
interface HTMLHeadingElement : HTMLElement {
10+
[HTMLConstructor] constructor();
11+
};

inputfiles/idlSources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@
286286
"url": "https://html.spec.whatwg.org/multipage/scripting.html",
287287
"title": "HTML - Scripting"
288288
},
289+
{
290+
"url": "https://html.spec.whatwg.org/multipage/sections.html",
291+
"title": "HTML - Sections"
292+
},
289293
{
290294
"url": "https://html.spec.whatwg.org/multipage/semantics.html",
291295
"title": "HTML - Semantics"

inputfiles/removedTypes.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,6 @@
166166
"FederatedCredential": null,
167167
"FormDataEvent": null,
168168
"HTMLAreasCollection": null,
169-
"HTMLBodyElement": {
170-
"properties": {
171-
"property": {
172-
"onblur": null,
173-
"onerror": null,
174-
"onfocus": null,
175-
"onload": null,
176-
"onresize": null,
177-
"onscroll": null
178-
}
179-
}
180-
},
181169
"HTMLFormElement": {
182170
"properties": {
183171
"property": {

0 commit comments

Comments
 (0)