Re: [whatwg/dom] dispatch algorithm doesn't seem to handle the case when target or relatedTarget is Window object (#580)

I remember I have tried to fix compsoedPath() for Window at
https://github.com/whatwg/dom/pull/327, however it wouldn't be enough.

I agree that we have to fix the standard so that we can consider non-node EventTarget nicely.
Basic idea should be:
-  Non-node EventTarget event.target and event.relatedTarget should be visible from anywhere.
-  From Window, any node in a shadow tree shouldn't be visible.
-  From Window, any node in a document tree should be visible.


-- 
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/580#issuecomment-369813057

Received on Friday, 2 March 2018 03:57:46 UTC