Re: [whatwg/dom] Correct setting of target and relatedTargets post-dispatch (#585)

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.

Yup, I confirmed the Blink's implementation.
We need to distinguish *relatedTarget* and *relatedTargets* somehow because only *relatedTarget* (in the sense of before this PR) should be considered here.
"*relaterTagets* contains parent" causes a sort of *false positive*.

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

Received on Tuesday, 13 March 2018 10:44:26 UTC