- From: Ryosuke Niwa <notifications@github.com>
- Date: Wed, 21 Feb 2018 20:25:40 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 22 February 2018 04:26:06 UTC
I think a better approach for JS is to provide an imperative API to set the list of nodes assigned to a slot. e.g. `slot.replaceAssignment(nodes);` where nodes would replace whatever the slot shows. Such a succinct API is still quite powerful. It's true that we can't truly implement `details` and `summary` because the DOM mutation won't be reflected immediately but that's probably the best we can do today without blowing up this feature into a worklet insanity. -- 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/726#issuecomment-367563619
Received on Thursday, 22 February 2018 04:26:06 UTC