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

> It's invasive, but it would allow non-node trees to have the same capabilities as node trees. Or are you suggesting that depth would be a property of a node? That'd also be somewhat invasive probably.

I don't know if that's all that important. I'm suggesting that the algorithm to build up the event path could simply check if a target is a node, and if so, compute the depth of the closed shadow tree at that point.

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

Received on Friday, 14 September 2018 10:48:15 UTC