- From: Tomek Wytrębowicz <notifications@github.com>
- Date: Mon, 21 May 2018 16:41:32 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 21 May 2018 23:41:54 UTC
> Why does slotchange not include changes to node contents? I believe, it's consistent as it also does not include changes made to non-text nodes, like changing character data or attributes of distributed `<div>`s. For some of my elements, I took slightly different approach. I use wrapper pattern, for example: ```html <decorative-editor> <!-- could be distributed from more slots--> <textarea>Lorem ipsum</textarea> </edcorative-editor> ``` So, as a to use my custom element (`<decorative-editor>`) I require to insert the content into single `textarea`. Then, I only observe single element. May look limitting, but at least give a bit of progressive enhancement, and simplifies code a little. -- 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/753#issuecomment-390817576
Received on Monday, 21 May 2018 23:41:54 UTC