- From: Shiino Yuki <notifications@github.com>
- Date: Sun, 19 Aug 2018 18:53:25 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 20 August 2018 01:53:53 UTC
Thanks. I think I've finally caught up to your first question. > In https://chromium-review.googlesource.com/c/chromium/src/+/1177406 Yuki Yamada corrected a wpt test that now illustrates that if a listener of a node in a shadow tree runs for a composed event, window.event will be undefined. > > If this listener were to call a function that's not aware of the shadow tree, but does keep around state about the composed event, it'll learn about the existence of the shadow tree. Supposing that author knows the composed event and the target where the event was initially dispatched (i.e. `target.dispatchEvent(e)`), it seems possible to me that author looks for `e.currentTarget` in a subtree under the target. If author was not able to find `e.currentTarget` in the subtree, it must be a shadow node, mustn't it? If so, tweaking `window.event` wouldn't help very much, I think. -- 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-414176351
Received on Monday, 20 August 2018 01:53:53 UTC