Skip to content
Draft
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
103 changes: 1 addition & 102 deletions custom/idl/event-handlers.idl
Original file line number Diff line number Diff line change
@@ -1,122 +1,26 @@
partial interface Document {
attribute EventHandler onscroll;
attribute EventHandler onscrollend;
attribute EventHandler onscrollsnapchange;
attribute EventHandler onscrollsnapchanging;
attribute EventHandler onsecuritypolicyviolation;
attribute EventHandler onselectionchange;
};

partial interface Element {
partial interface HTMLElement {
attribute EventHandler onafterscriptexecute;
attribute EventHandler onanimationcancel;
attribute EventHandler onanimationend;
attribute EventHandler onanimationiteration;
attribute EventHandler onanimationstart;
attribute EventHandler onauxclick;
attribute EventHandler onbeforeinput;
attribute EventHandler onbeforematch;
attribute EventHandler onbeforescriptexecute;
attribute EventHandler onbeforexrselect;
attribute EventHandler onblur;
attribute EventHandler onclick;
attribute EventHandler oncompositionend;
attribute EventHandler oncompositionstart;
attribute EventHandler oncompositionupdate;
attribute EventHandler oncontentvisibilityautostatechange;
attribute EventHandler oncontextmenu;
attribute EventHandler oncopy;
attribute EventHandler oncut;
attribute EventHandler ondblclick;
attribute EventHandler onfocus;
attribute EventHandler ongotpointercapture;
attribute EventHandler oninput;
attribute EventHandler onkeydown;
attribute EventHandler onkeypress;
attribute EventHandler onkeyup;
attribute EventHandler onlostpointercapture;
attribute EventHandler onmousedown;
attribute EventHandler onmouseenter;
attribute EventHandler onmouseleave;
attribute EventHandler onmousemove;
attribute EventHandler onmouseout;
attribute EventHandler onmouseover;
attribute EventHandler onmouseup;
attribute EventHandler onmousewheel;
attribute EventHandler onpaste;
attribute EventHandler onpointercancel;
attribute EventHandler onpointerdown;
attribute EventHandler onpointerenter;
attribute EventHandler onpointerleave;
attribute EventHandler onpointermove;
attribute EventHandler onpointerout;
attribute EventHandler onpointerover;
attribute EventHandler onpointerrawupdate;
attribute EventHandler onpointerup;
attribute EventHandler onscroll;
attribute EventHandler onscrollend;
attribute EventHandler onscrollsnapchange;
attribute EventHandler onscrollsnapchanging;
attribute EventHandler onsecuritypolicyviolation;
attribute EventHandler ontouchcancel;
attribute EventHandler ontouchend;
attribute EventHandler ontouchmove;
attribute EventHandler ontouchstart;
attribute EventHandler ontransitioncancel;
attribute EventHandler ontransitionend;
attribute EventHandler ontransitionrun;
attribute EventHandler ontransitionstart;
attribute EventHandler onwebkitmouseforcechanged;
attribute EventHandler onwebkitmouseforcedown;
attribute EventHandler onwebkitmouseforceup;
attribute EventHandler onwebkitmouseforcewillbegin;
attribute EventHandler onwheel;
};

partial interface Window {
attribute EventHandler onafterprint;
attribute EventHandler onbeforeprint;
attribute EventHandler onbeforeunload;
attribute EventHandler onblur;
attribute EventHandler onerror;
attribute EventHandler onfocus;
attribute EventHandler ongamepadconnected;
attribute EventHandler ongamepaddisconnected;
attribute EventHandler onhashchange;
attribute EventHandler onlanguagechange;
attribute EventHandler onload;
attribute EventHandler onmessage;
attribute EventHandler onmessageerror;
attribute EventHandler onoffline;
attribute EventHandler ononline;
attribute EventHandler onpagehide;
attribute EventHandler onpagereveal;
attribute EventHandler onpageshow;
attribute EventHandler onpageswap;
attribute EventHandler onpopstate;
attribute EventHandler onrejectionhandled;
attribute EventHandler onresize;
attribute EventHandler onscrollsnapchange;
attribute EventHandler onscrollsnapchanging;
attribute EventHandler onstorage;
attribute EventHandler onunhandledrejection;
attribute EventHandler onunload;
};

partial interface HTMLElement {
attribute EventHandler onbeforetoggle;
attribute EventHandler onchange;
attribute EventHandler oncommand;
attribute EventHandler ondrag;
attribute EventHandler ondragend;
attribute EventHandler ondragenter;
attribute EventHandler ondragexit;
attribute EventHandler ondragleave;
attribute EventHandler ondragover;
attribute EventHandler ondragstart;
attribute EventHandler ondrop;
attribute EventHandler onerror;
attribute EventHandler ontoggle;
};

partial interface HTMLCanvasElement {
Expand Down Expand Up @@ -196,11 +100,6 @@ partial interface SVGAnimationElement {
attribute EventHandler onrepeatEvent;
};

partial interface SVGElement {
attribute EventHandler onerror;
attribute EventHandler onload;
};

partial interface WorkerGlobalScope {
attribute EventHandler onsecuritypolicyviolation;
};
Expand Down
2 changes: 0 additions & 2 deletions test-builder/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ const flattenIDL = (specIDLs: IDLFiles, customIDLs: IDLFiles) => {
if (dfn.type === "includes") {
const skipIncludes = [
"WindowOrWorkerGlobalScope", // handled separately as globals
"GlobalEventHandlers", // XXX needs special handling
"WindowEventHandlers", // XXX needs special handling
];
if (skipIncludes.includes(dfn.includes)) {
continue;
Expand Down