Files
serenity/Userland/Libraries/LibWeb/DOM/CustomEvent.idl
Jelle Raaijmakers f36546d591 LibWeb: Update DOM IDL specs
I noticed some of these were running behind the upstream spec.

(cherry picked from commit d5fd29adb79641830835e2efd9541de08d0ad6fc)
2024-11-14 17:46:06 -05:00

16 lines
465 B
Plaintext

#import <DOM/Event.idl>
// https://dom.spec.whatwg.org/#interface-customevent
[Exposed=*]
interface CustomEvent : Event {
constructor(DOMString type, optional CustomEventInit eventInitDict = {});
readonly attribute any detail;
undefined initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // legacy
};
dictionary CustomEventInit : EventInit {
any detail = null;
};