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

`e.target` is somewhat adjusted, but `e.currentTarget`, etc. do not seem adjusted.  So, IIUC what you're saying is, the following is possible if `window.event` were exposed in a shadow tree, I guess?

```
function global_function() {
  console.log(window.event);
  console.log(window.event.currentTarget);  // => shadowNode
}

shadowNode.addEventListener(type, (e) => {
  global_function();
});
```

Is this what we're afraid of?

-- 
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-413836478

Received on Friday, 17 August 2018 11:26:47 UTC