Widely Available
Web components
id: slot-assign
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:
Achieved Widely Available on Sep 27, 2025 (Cross-browser Newly Available since Mar 27, 2023).
Desktop Browser Engine Support
Google Chrome
92
Supported
Mozilla Firefox
92
Supported
Apple Safari
16.4
Supported
Microsoft Edge
92
Supported
Mobile Browser Engine Support
Chrome Android
92
Firefox Android
92
Safari iOS
16.4
Specifications and References
MDN Browser Compat Data Keys: