Re: [whatwg/dom] Capturing event listeners are called during bubbling phase for shadow hosts (#685)

@dstorey and I first wrote down what we expected to happen in this scenario, then consulted @rniwa's observations. Turns out we **expected** the new proposed behavior (of invoking capture listeners first, then bubble), and were surprised to find it speced differently. We cross-checked with Edge and IE to see if either had ever fired events at target in the proposed manner, but that never seems to have been the case (we have always fired at target listeners in registration order).

To clarify, we believe that non-shadow dom use cases would be potentially impacted by this change (if we change so that e.g., capture listeners and bubble listeners are maintained in separate lists for at target nodes and invoked in registration order within those lists, starting with capture listeners).

Since the proposed change makes more rational sense to us, we are strongly in support of a spec and behavior change here if it can be shown to be web compatible.

-- 
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/685#issuecomment-420090568

Received on Monday, 10 September 2018 23:08:22 UTC