1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

LibWeb: Add the missing EventInit property to Event constructor

This commit is contained in:
Idan Horowitz 2021-09-29 01:43:24 +03:00
parent 071a358ffb
commit e22d9dc360
2 changed files with 26 additions and 7 deletions

View file

@ -1,7 +1,6 @@
interface Event {
// FIXME: second parameter: 'optional EventInit eventInitDict = {}'
constructor(DOMString type);
constructor(DOMString type, optional EventInit eventInitDict = {});
readonly attribute DOMString type;
readonly attribute EventTarget? target;
@ -26,3 +25,9 @@ interface Event {
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
};
dictionary EventInit {
boolean bubbles = false;
boolean cancelable = false;
boolean composed = false;
};