Skip to content

Add Compatibility types #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5772,6 +5772,7 @@ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
link: string;
/** @deprecated */
noWrap: boolean;
/** @deprecated */
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
onresize: ((this: HTMLBodyElement, ev: UIEvent) => any) | null;
/** @deprecated */
Expand Down Expand Up @@ -16090,6 +16091,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
onmspointerup: ((this: Window, ev: Event) => any) | null;
onoffline: ((this: Window, ev: Event) => any) | null;
ononline: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
Expand Down Expand Up @@ -16124,6 +16126,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
onwaiting: ((this: Window, ev: Event) => any) | null;
opener: any;
/** @deprecated */
readonly orientation: string | number;
readonly outerHeight: number;
readonly outerWidth: number;
Expand Down Expand Up @@ -17001,6 +17004,7 @@ declare var onmspointerover: ((this: Window, ev: Event) => any) | null;
declare var onmspointerup: ((this: Window, ev: Event) => any) | null;
declare var onoffline: ((this: Window, ev: Event) => any) | null;
declare var ononline: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
Expand Down Expand Up @@ -17035,6 +17039,7 @@ declare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) |
declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
declare var opener: any;
/** @deprecated */
declare var orientation: string | number;
declare var outerHeight: number;
declare var outerWidth: number;
Expand Down
8 changes: 8 additions & 0 deletions inputfiles/idl/Compatibility.widl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
partial interface Window {
readonly attribute short orientation;
attribute EventHandler onorientationchange;
};

partial interface HTMLBodyElement {
attribute EventHandler onorientationchange;
};
5 changes: 5 additions & 0 deletions inputfiles/idlSources.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"url": "https://compat.spec.whatwg.org/",
"title": "Compatibility",
"deprecated": true
},
{
"url": "https://www.w3.org/TR/css-animations-1/",
"title": "CSS Animations"
Expand Down