[Bug 23887] [Shadow] Put only the final destination insertion point to the event path

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23887

--- Comment #4 from Hayato Ito <hayato@chromium.org> ---
(In reply to Steve Orvell from comment #3)
> Can we have an example to work with to see the problem more clearly?
> 
> Is the proposal to change just the information exposed in event.path or to
> change the set of elements to which events bubble?

Both. Both uses the result of event path calculation algorithm.
http://w3c.github.io/webcomponents/spec/shadow/#event-paths

> 
> My concern is that this will interact poorly with composition.  It seems
> desirable to maintain the invariant that event handlers on insertion points
> can see events which bubble from elements distributed to them.

Let's use the example. See Fig.4
http://w3c.github.io/webcomponents/spec/shadow/#distribution-results


When a click event happens on child1 node,
- Event listeners registered on insertion point 1 can't see the click event
because child1's final destination is not insertion point 1.
- Event listeners registered on insertion point 3 can see the click event
because child1's final destination is insertion point 3.


I supposed that insertion point 1 doesn't have to see events which happened on
child1.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 26 November 2013 00:04:49 UTC