- From: Emilio Cobos Álvarez <notifications@github.com>
- Date: Sat, 29 Dec 2018 10:42:15 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 29 December 2018 18:42:38 UTC
The comparison needs to be 'less than or equal', otherwise you don't prepend the items from the same level as the target. Trivially, in a 'no shadow DOM' situation, all the items in the path before the current target wouldn't be in the path without this patch, which is wrong. This is tested already by event-composed-path.html in WPT. You can view, comment on, or merge this pull request online at: https://github.com/whatwg/dom/pull/727 -- Commit Summary -- * Fix composedPath() implementation. -- File Changes -- M dom.bs (3) -- Patch Links -- https://github.com/whatwg/dom/pull/727.patch https://github.com/whatwg/dom/pull/727.diff -- 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/727
Received on Saturday, 29 December 2018 18:42:38 UTC