From 2e191a60f256196307cb701a34576e87b82343c8 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 1 Apr 2026 11:09:56 +0200 Subject: [PATCH 1/4] Update api.Element base to create HTML element --- custom/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/tests.yaml b/custom/tests.yaml index ddc23484f..c8a7e2943 100644 --- a/custom/tests.yaml +++ b/custom/tests.yaml @@ -1658,7 +1658,7 @@ api: __base: |- var instance; try { - instance = document.createElementNS('', 'el'); + instance = document.createElementNS('http://www.w3.org/1999/xhtml', 'el'); } catch(e) { instance = document.createElement('b'); } From 5657f9e299f6a71bd941c8480a75bf9ac94d9f6b Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 1 Apr 2026 11:31:50 +0200 Subject: [PATCH 2/4] Revert "Update api.Element base to create HTML element" This reverts commit 2e191a60f256196307cb701a34576e87b82343c8. --- custom/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/tests.yaml b/custom/tests.yaml index c8a7e2943..ddc23484f 100644 --- a/custom/tests.yaml +++ b/custom/tests.yaml @@ -1658,7 +1658,7 @@ api: __base: |- var instance; try { - instance = document.createElementNS('http://www.w3.org/1999/xhtml', 'el'); + instance = document.createElementNS('', 'el'); } catch(e) { instance = document.createElement('b'); } From d5a98d8a3faacc9f12c51f8af394f2be55de18c4 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 1 Apr 2026 11:32:12 +0200 Subject: [PATCH 3/4] Unignore event handler mixins --- test-builder/api.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/test-builder/api.ts b/test-builder/api.ts index 442e3673d..80e82cbf0 100644 --- a/test-builder/api.ts +++ b/test-builder/api.ts @@ -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; From c29dd70a5a263c4c8c6e4dcf71a7852277b68350 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 1 Apr 2026 11:42:16 +0200 Subject: [PATCH 4/4] Remove duplicate custom IDL event definitions --- custom/idl/event-handlers.idl | 103 +--------------------------------- 1 file changed, 1 insertion(+), 102 deletions(-) diff --git a/custom/idl/event-handlers.idl b/custom/idl/event-handlers.idl index 34c860c95..e74a3debc 100644 --- a/custom/idl/event-handlers.idl +++ b/custom/idl/event-handlers.idl @@ -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 { @@ -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; };