Re: [whatwg/dom] "A slotable has an associated name" should read slot instead of name (#563)

No, a slotable can be a slot, it doesn't have one associated with it. The "superglobal" `slot` attribute sets the name of a slotable.

We should perhaps have some more examples around this.
```
<div id=host>
 <p id=slotable1 slot=hi>Example
 <p id=slotable2>Elsewhere
</div>
<script>
const sr = document.getElementById('host').attachShadow({ mode: "closed" });
sr.appendChild(document.createElement("slot"));
const slot = sr.appendChild(document.createElement("slot"));
slot.name = "hi";
</script>
```
(`id=host` also contains some other slotables, the text nodes surrounding the paragraphs.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/563#issuecomment-359695017

Received on Tuesday, 23 January 2018 07:04:31 UTC