- From: Steve Orvell <notifications@github.com>
- Date: Mon, 19 Sep 2016 14:39:44 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Monday, 19 September 2016 21:40:14 UTC
According to the spec, the `slotchange` event [bubbles](https://dom.spec.whatwg.org/#queue-a-mutation-observer-compound-microtask). The spec also says that `slotchange` should [re-fire](https://dom.spec.whatwg.org/#signaling-slot-change) at a slot's `assignedSlot`. Both of these behaviors together result in some odd an unexpected behavior: if a slot is assigned to another slot, the inner slot will see a node being assigned twice. See the console output here: http://jsbin.com/jexabaf/edit?html,output. I propose that the re-firing at `assignedSlot` is ok, but the bubbling behavior should be removed. Note, Canary's current implementation appears to follow the spec (`slotchange` bubbles). Safari's implementation does not (`slotchange` does not bubble). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/571
Received on Monday, 19 September 2016 21:40:14 UTC