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

Extending *get the parent* seems rather invasive. If I were you, I would have defined the depth of shadow trees as a separate concept, and simply stored that depth. My implementation in WebKit doesn't use that precise definition of the depth because computing the depth of tree happens to be an expensive operation in WebKit but one could imagine another implementation can cheaply compute the depth of (closed) shadow trees and simply store that information while building up the event path.

-- 
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#issuecomment-421260062

Received on Friday, 14 September 2018 07:39:51 UTC