- From: Hayato Ito <notifications@github.com>
- Date: Tue, 13 Mar 2018 04:13:46 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/585/review/103384746@github.com>
hayatoito commented on this pull request. > </ol> - <li><p>Otherwise, if <var>parent</var> and <var>relatedTarget</var> are identical, then set - <var>parent</var> to null. + <li><p>Otherwise, if <var>relatedTargets</var> <a for=list>contains</a> <var>parent</var>, then + set <var>parent</var> to null. These steps always need some time to understand its intention exactly. :( My intention is: - All touch targets should be adjusted in the same way as relatedTarget should be adjusted. They both should be adjusted. - However, there is one difference between relatedTarget and touch targets. Only relatedTarget should be used to decide to exit this while loop "11. While parent is non-null". This step sets *parent* to null, thus I think this is an attempt to exit the loop. To decide to exit this loop or not, in other words, to decide whether an event should be stopped at a shadow root or not, only relatedTarget should be used as its judgement. Touch targets shouldn't be used there. Since TouchEvent doesn't look to have a relatedTarget to me, TouchEvent never set parent to null here. In other words, TouchEvent is never stopped at a shadow root even if its target and one of touch targets are same. -- 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/585#discussion_r174092220
Received on Tuesday, 13 March 2018 11:14:09 UTC