You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/happy-dom/src/event/EventTarget.ts
+8-4
Original file line number
Diff line number
Diff line change
@@ -110,11 +110,18 @@ export default class EventTarget {
110
110
* @returns The return value is false if event is cancelable and at least one of the event handlers which handled this event called Event.preventDefault().
111
111
*/
112
112
publicdispatchEvent(event: Event): boolean{
113
-
if(!event[PropertySymbol.target]){
113
+
// The "load" event is a special case. It should not bubble up to the window from the document.
0 commit comments