Re: [WICG/webcomponents] Interaction between imperative slotting and declarative shadow DOM (Issue #967)

The unfortunate bit there is the sensitivity to whitespace. I wonder if, similar to `assignedNodes()` vs `assignedElement()`, if we'd want two attributes so that if you only want to slot elements it's not sensitive to whitespace.

```html
<custom-element>
    <template shadowroot="closed" slotassignment="manual">
        <slot initialelements="0"></slot>, <slot initialnodes="5 7"></slot>
    </template>
    <custom-child>hello</custom-chid>
    <custom-child>world</custom-chid>
    <custom-child>shadow</custom-chid>
    <custom-child>DOM</custom-chid>
</custom-element>
```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/967#issuecomment-1260406836
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/967/1260406836@github.com>

Received on Wednesday, 28 September 2022 05:29:03 UTC