Re: [whatwg/dom] Do not dispatch a trusted event when target and reletedTarget are identical (#336)

FWIW, after reading comments here, I was about to propose the same stuff what hayato then proposes in https://github.com/whatwg/dom/pull/336#pullrequestreview-2648799 , I think.
My current thinking is that UIEvents should tell what kind of events should be fired, and it plays in a layer above actual event dispatch. Then if shadow DOM affects to event dispatch, that is something to deal with in DOM spec.
(in a way even .composed could be thought to be part of dispatch, not really about the caller of dispatch method, even though, currently .composed is in UI spec events)

Also, I would imagine https://github.com/whatwg/dom/pull/336#pullrequestreview-2648799 is what would be implemented, not some per-event-firing-location relatedTarget check.

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

Received on Tuesday, 4 October 2016 14:27:55 UTC