You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ability to imperatively assign content to a <slot> element is available in Chrome and Firefox, and while merged in WebKit not currently available in Safari.
Rationale
Some of the scenarios called out in the proposal include not having to pre-compute the slot names ahead of time, as well as being able to conditionally load content into a slot.
In the MDN short survey on APIs & JavaScript, "Web Components (custom elements, Shadow DOM, etc.)" was the most popular choice by a fairly wide margin, selected by ~39% of survey takers.
Web Components was split into many granular proposals, and the survey results don't tell us which aspects web developers want the most, but it's fair to say that something about Web Components is important. (I'm posting this comment on each of the split proposals.)
Thank you for proposing Imperative Slot Assignment for inclusion in Interop 2023.
We wanted to let you know that this proposal was not selected to be part of Interop this year. We looked at the results in WPT, and found that this feature is already largely interoperable between browsers.
For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023!
Activity
gsnedders commentedon Oct 14, 2022
Maybe https://wpt.fyi/results/shadow-dom?label=master&label=experimental&aligned&view=subtest&q=imperative%20slot%20path%3A%2Fshadow-dom (the other two don't seem to point at anything at this point)?
foolip commentedon Nov 11, 2022
In the MDN short survey on APIs & JavaScript, "Web Components (custom elements, Shadow DOM, etc.)" was the most popular choice by a fairly wide margin, selected by ~39% of survey takers.
Web Components was split into many granular proposals, and the survey results don't tell us which aspects web developers want the most, but it's fair to say that something about Web Components is important. (I'm posting this comment on each of the split proposals.)
nairnandu commentedon Feb 1, 2023
Thank you for proposing Imperative Slot Assignment for inclusion in Interop 2023.
We wanted to let you know that this proposal was not selected to be part of Interop this year. We looked at the results in WPT, and found that this feature is already largely interoperable between browsers.
For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023!
Posted on behalf of the Interop team.