Re: [whatwg/dom] window.event and shadow trees (#679)

@yuki3 the rationale is that if an event listener in a shadow tree calls a "global function", that global function then has access to the shadow tree through `window.event`, breaking encapsulation.

Technically this applies to composed events as well, however in that case the global function could have obtained a reference to the `Event` object earlier on easily enough as well.

-- 
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/679#issuecomment-413783141

Received on Friday, 17 August 2018 07:35:03 UTC