Re: [whatwg/dom] Set event.target to null when dispatching finishes at ShadowRoot (#513)

hayatoito commented on this pull request.



> @@ -1253,6 +1253,9 @@ for discussion).
 
  <li><p>Set <var>event</var>'s {{Event/eventPhase}} attribute to {{Event/NONE}}.
 
+ <li><p>Set <var>event</var>'s {{Event/target}} attribute to null if {{Event/target}}'s root is a
+ <a for=/>shadow root</a> and <var>event</var>'s <a>composed flag</a> is unset.

> and <var>event</var>'s <a>composed flag</a> is unset.

We should remove this condition.
We need to clear event.target even if composed flag is set because target and relatedTarget can be identical in the middle and event path can be *trimmed* for that case.

-- 
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/513#pullrequestreview-62950591

Received on Friday, 15 September 2017 05:46:01 UTC