- From: Ryosuke Niwa <notifications@github.com>
- Date: Mon, 03 Oct 2016 02:04:32 -0700
- To: whatwg/dom <dom@noreply.github.com>
Received on Monday, 3 October 2016 09:05:01 UTC
> Do not dispatch an event when retargeted-target and retargeted-reletedTarget are identical, but target and relatedTarget are not identical. This has the same issue as the one I pointed out in https://github.com/w3c/webcomponents/issues/577. In general, you can't just compare *target* and *related target* or their retargeted counterparts. You need to look at whether we're crossing the shadow tree, and if both *target* and *related target* are in shadow tree from which we're exiting. For example, it's perfectly fine to dispatch an event with target & related target to be identical, and the event MUST be dispatched. This is the existing behavior of event dispatching and we can't change that for backwards compatibility reasons. -- 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/pull/336#issuecomment-251058895
Received on Monday, 3 October 2016 09:05:01 UTC