Re: [w3c/webcomponents] Named slots and the slot attribute requirement (#726)

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