Re: [w3c/webcomponents] changing slot text node is overly verbose (#753)

`document.querySelector('copy-paste').shadowRoot.querySelector('slot').assignedNodes()[0].data = 'something completely different'` will not work for closed shadow roots, plus will not work with distributed content, more nodes, etc.

AFAIK, you need to check/attach MutationObserver to all `slot.assignedNodes({flatten: true})` as you may have text divided into many nodes and distributed from nested slots.

-- 
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-390798232

Received on Monday, 21 May 2018 22:09:51 UTC