mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +00:00
LibWeb: Update DOM IDL specs
I noticed some of these were running behind the upstream spec.
This commit is contained in:
parent
c79f261bec
commit
d5fd29adb7
Notes:
github-actions[bot]
2024-10-14 16:00:25 +00:00
Author: https://github.com/gmta
Commit: d5fd29adb7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1784
Reviewed-by: https://github.com/tcl3
Reviewed-by: https://github.com/trflynn89
18 changed files with 33 additions and 52 deletions
|
@ -1,9 +1,9 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
#import <HighResolutionTime/DOMHighResTimeStamp.idl>
|
||||
|
||||
// https://dom.spec.whatwg.org/#event
|
||||
[Exposed=*]
|
||||
interface Event {
|
||||
|
||||
constructor(DOMString type, optional EventInit eventInitDict = {});
|
||||
|
||||
readonly attribute DOMString type;
|
||||
|
@ -19,21 +19,20 @@ interface Event {
|
|||
readonly attribute unsigned short eventPhase;
|
||||
|
||||
undefined stopPropagation();
|
||||
attribute boolean cancelBubble;
|
||||
attribute boolean cancelBubble; // legacy alias of .stopPropagation()
|
||||
undefined stopImmediatePropagation();
|
||||
|
||||
readonly attribute boolean bubbles;
|
||||
readonly attribute boolean cancelable;
|
||||
attribute boolean returnValue;
|
||||
attribute boolean returnValue; // legacy
|
||||
undefined preventDefault();
|
||||
readonly attribute boolean defaultPrevented;
|
||||
readonly attribute boolean composed;
|
||||
|
||||
readonly attribute boolean isTrusted;
|
||||
readonly attribute double timeStamp;
|
||||
|
||||
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
|
||||
[LegacyUnforgeable] readonly attribute boolean isTrusted;
|
||||
readonly attribute DOMHighResTimeStamp timeStamp;
|
||||
|
||||
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // legacy
|
||||
};
|
||||
|
||||
dictionary EventInit {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue