Re: [whatwg/dom] Shadow: Update the behavior of event dispatch when target and related… (#336)

> 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