- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 22 Jan 2018 23:04:09 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 23 January 2018 07:04:31 UTC
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