- From: Micah(phones) <notifications@github.com>
- Date: Fri, 21 Oct 2016 00:30:00 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Friday, 21 October 2016 07:30:31 UTC
I want to detect changes to a slot by listening to the `slotchange` event. My slot element only contains a single line of text, and so just a single text node. When I update the host element's innerHTML with a new, different single line of text, I expect that a `slotchange` event should fire, but it doesn't. If I change a host element's innerHTML from `123\n 456` to `567\n 89`, a `slotchange` event does fire, as I'd expect. I'm not sure if this is a bug? feature? in Chromium (53.0.2785.143)... or something about how `slotchange` is related to Mutation Observers in the spec, so I figured I'd file it here. An example of this: https://jsbin.com/xivunad/15/edit?html,js,console,output -- 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/592
Received on Friday, 21 October 2016 07:30:31 UTC