LibWeb/HTML: Implement CommandEvent class

This implements the `CommandEvent` class.
This commit is contained in:
Glenn Skrzypczak 2025-04-04 12:35:20 +02:00 committed by Tim Ledbetter
commit cce7d8c0fb
Notes: github-actions[bot] 2025-04-18 11:11:05 +00:00
8 changed files with 297 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#import <DOM/Event.idl>
// https://html.spec.whatwg.org/multipage/interaction.html#commandevent
[Exposed=Window]
interface CommandEvent : Event {
constructor(DOMString type, optional CommandEventInit eventInitDict = {});
readonly attribute Element? source;
readonly attribute DOMString command;
};
dictionary CommandEventInit : EventInit {
Element? source = null;
DOMString command = "";
};