Re: [whatwg/dom] Standardize srcElement, returnValue, and window.event (#334)

Not always. While events are being handled, window.event returns the Event object.
`data:text/html,<script>window.event = "value before event dispatch"; window.addEventListener("foo", function(e) { console.log("window.event in event listener: " + window.event); });  window.dispatchEvent(new Event("foo")); console.log("window.event after event dispatch: " + window.event);</script> `

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/334#issuecomment-379295535

Received on Friday, 6 April 2018 15:50:26 UTC