Baseline Widely Web components
Imperative slot assignment
The assign() method for <slot> elements assigns nodes to the slot, as an alternative to using the slot and name HTML attributes. The nodes must be children of a shadow host and the shadow root must be created with the slotAssignment set to "manual". Also known as manual slot assignment.
Baseline Status
Widely Available
Since 2023-03-27
First Core Launch
Chrome 92
2021-07-20
Core-3 Stability
615d (1.7y)
Last: Safari (2023-03-27)
BCD Keys Mapped
2
Group: Web components
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 92 | 2021-07-20 |
| Chrome Android | mobile | 92 | 2021-07-20 |
| Edge | desktop | 92 | 2021-07-22 |
| Firefox | desktop | 92 | 2021-09-07 |
| Firefox for Android | mobile | 92 | 2021-09-07 |
| Safari | desktop | 16.4 | 2023-03-27 |
| Safari on iOS | mobile | 16.4 | 2023-03-27 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.HTMLSlotElement.assign | DOM API | 615d (1.7y) |
| api.ShadowRoot.slotAssignment | DOM API | 888d (2.4y) |