mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
3e8c8b185e
I believe this is an error in the UI Events spec, and it should be
updated to match the HTML spec (which uses WindowProxy everywhere).
This fixes a bunch of issues already covered by existing WPT tests.
Spec bug: https://github.com/w3c/uievents/issues/388
Note that WebKit has been using WindowProxy instead of Window in
UI Events IDL since 2018:
816158b4aa
17 lines
798 B
Text
17 lines
798 B
Text
#import <UIEvents/UIEvent.idl>
|
|
|
|
// https://w3c.github.io/uievents/#compositionevent
|
|
[Exposed=Window]
|
|
interface CompositionEvent : UIEvent {
|
|
constructor(DOMString type, optional CompositionEventInit eventInitDict = {});
|
|
readonly attribute USVString data;
|
|
|
|
// https://w3c.github.io/uievents/#dom-compositionevent-initcompositionevent
|
|
// FIXME: The spec uses WindowProxy rather than Window (see https://github.com/w3c/uievents/pull/379).
|
|
undefined initCompositionEvent(DOMString typeArg, optional boolean bubblesArg = false, optional boolean cancelableArg = false, optional WindowProxy? viewArg = null, optional DOMString dataArg = "");
|
|
};
|
|
|
|
// https://w3c.github.io/uievents/#dictdef-compositioneventinit
|
|
dictionary CompositionEventInit : UIEventInit {
|
|
DOMString data = "";
|
|
};
|