mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:42:43 +00:00 
			
		
		
		
	 344785ae3a
			
		
	
	
		344785ae3a
		
	
	
	
	
		
			
			This is typically used as `class A extends EventTarget`. It's usage can be found on websites such as https://loadout.tf/ This has the quirk that we don't do set the EventTarget prototype for HTML::Window, as it would cause a null deref on startup. However, given it wasn't doing this before, I don't think it should cause any issues.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			708 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			708 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/AbortSignal.idl>
 | |
| 
 | |
| // https://dom.spec.whatwg.org/#eventtarget
 | |
| [Exposed=*, UseNewAKString]
 | |
| interface EventTarget {
 | |
| 
 | |
|     constructor();
 | |
| 
 | |
|     undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
 | |
|     undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
 | |
| 
 | |
|     [ImplementedAs=dispatch_event_binding] boolean dispatchEvent(Event event);
 | |
| 
 | |
| };
 | |
| 
 | |
| dictionary EventListenerOptions {
 | |
|     boolean capture = false;
 | |
| };
 | |
| 
 | |
| dictionary AddEventListenerOptions : EventListenerOptions {
 | |
|     boolean passive = false;
 | |
|     boolean once = false;
 | |
|     AbortSignal signal;
 | |
| };
 |