[whatwg/dom] composedPath() is wrong (#684)

@pmdartus discovered in https://github.com/jsdom/jsdom/pull/2347#discussion_r212829365 that the algorithm as-is exposes closed shadow nodes. This also happens in Firefox.

See `shadow-dom/event-composed-path.html` in wpt.

It seems to solve this we'd need to record for each item in an event's path what nesting level it's at and whether it's inside a closed shadow tree?

(This was missed in #535.)

cc @whatwg/components 

-- 
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/issues/684

Received on Tuesday, 28 August 2018 08:34:18 UTC