From c8232f246f9fc81e2d082c40a3b8ce3e1736e0ff Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 24 Nov 2019 14:42:27 +0900 Subject: [PATCH] Add HTML Sections types --- baselines/dom.generated.d.ts | 3 --- inputfiles/addedTypes.json | 29 +++++++++++++++++++++++++++++ inputfiles/idl/HTML - Sections.widl | 11 +++++++++++ inputfiles/idlSources.json | 4 ++++ inputfiles/removedTypes.json | 12 ------------ 5 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 inputfiles/idl/HTML - Sections.widl diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index cc5537b24..876554448 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -6396,12 +6396,9 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { background: string; /** @deprecated */ bgColor: string; - bgProperties: string; /** @deprecated */ link: string; /** @deprecated */ - noWrap: boolean; - /** @deprecated */ onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null; /** @deprecated */ text: string; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index a6ce1c001..65addeedd 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -1238,6 +1238,13 @@ } ] }, + "HTMLBodyElement": { + "element": [ + { + "name": "body" + } + ] + }, "HTMLBRElement": { "element": [ { @@ -1422,6 +1429,28 @@ } ] }, + "HTMLHeadingElement": { + "element": [ + { + "name": "h1" + }, + { + "name": "h2" + }, + { + "name": "h3" + }, + { + "name": "h4" + }, + { + "name": "h5" + }, + { + "name": "h6" + } + ] + }, "HTMLHRElement": { "element": [ { diff --git a/inputfiles/idl/HTML - Sections.widl b/inputfiles/idl/HTML - Sections.widl new file mode 100644 index 000000000..b7fcb1f94 --- /dev/null +++ b/inputfiles/idl/HTML - Sections.widl @@ -0,0 +1,11 @@ +[Exposed=Window] +interface HTMLBodyElement : HTMLElement { + [HTMLConstructor] constructor(); +}; + +HTMLBodyElement includes WindowEventHandlers; + +[Exposed=Window] +interface HTMLHeadingElement : HTMLElement { + [HTMLConstructor] constructor(); +}; diff --git a/inputfiles/idlSources.json b/inputfiles/idlSources.json index 3eee3c5fe..f3a13d796 100644 --- a/inputfiles/idlSources.json +++ b/inputfiles/idlSources.json @@ -290,6 +290,10 @@ "url": "https://html.spec.whatwg.org/multipage/scripting.html", "title": "HTML - Scripting" }, + { + "url": "https://html.spec.whatwg.org/multipage/sections.html", + "title": "HTML - Sections" + }, { "url": "https://html.spec.whatwg.org/multipage/semantics.html", "title": "HTML - Semantics" diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 03dfd953b..3a7c467e6 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -153,18 +153,6 @@ }, "FederatedCredential": null, "HTMLAreasCollection": null, - "HTMLBodyElement": { - "properties": { - "property": { - "onblur": null, - "onerror": null, - "onfocus": null, - "onload": null, - "onresize": null, - "onscroll": null - } - } - }, "MessageEvent": { "methods": { "method": {