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

TakayoshiKochi commented on this pull request.



> @@ -5751,9 +5757,21 @@ is an object or one of its <a>shadow-including ancestors</a>.
 <var>B</var>, repeat these steps until they return an object:</p>
 
 <ol>
- <li><p>If <var>A</var>'s <a for=tree>root</a> is not a <a for=/>shadow root</a>, or <var>A</var>'s
- <a for=tree>root</a> is a <a>shadow-including inclusive ancestor</a> of <var>B</var>, then return
- <var>A</var>.
+ <li><p>If <var>A</var> is a {{Window}} object, then set <var>A</var> to <var>A</var>'s
+ <a>associated <code>Document</code></a>.

Because window is not an instance of a Node, it falls into the line 5767 (A is not a node)?
Sounds good  - but wondering what's the reasoning behind adding this line.

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

Received on Tuesday, 13 March 2018 06:36:29 UTC