mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 01:11:07 +00:00
LibWeb/HTML: Implement CommandEvent
class
This implements the `CommandEvent` class.
This commit is contained in:
parent
ffe0b05abd
commit
cce7d8c0fb
Notes:
github-actions[bot]
2025-04-18 11:11:05 +00:00
Author: https://github.com/skyz1
Commit: cce7d8c0fb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4220
Reviewed-by: https://github.com/tcl3 ✅
8 changed files with 297 additions and 0 deletions
14
Libraries/LibWeb/HTML/CommandEvent.idl
Normal file
14
Libraries/LibWeb/HTML/CommandEvent.idl
Normal 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 = "";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue