Re: [webcomponents] deepPath should return an empty array if it's no longer being dispatched (#373)

I remember that event.path returned an empty array in the past, but I changed the behavior after I received the feedback. The context is: https://code.google.com/p/chromium/issues/detail?id=402749

I'm fine that deepPath() would return an empty array after the event dispatch is done.
I think the original issue is no longer applied because deepPath() is now a method.

However, I would like to wait for another feedback from web developers for this change because this would revert the change. We should make a decision in terms of the usability of the API.


> since any code can keep a reference to Event object and later get access to nodes besides unclosed nodes (i.e. closed nodes that they shouldn't have access to).

This should not happen. After the dispatching, event.deepPath() returns unclosed nodes from the view of the document tree. Thus, an encapsulation does not break.



---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/373#issuecomment-176572580

Received on Friday, 29 January 2016 04:57:09 UTC