- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 17 Aug 2018 00:34:41 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 17 August 2018 07:35:03 UTC
@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