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

TakayoshiKochi 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.

Good catch. So we can determine if the event is stopped at shadow root just by looking at whether target's root is a shadow root.

-- 
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#discussion_r139069072

Received on Friday, 15 September 2017 05:56:15 UTC