Skip to content

Imperative Slot Assignment #207

Closed
Closed

Description

@Westbrook

Description

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.

Specification

whatwg/html#6561

Tests

Activity

  1. moved this to Proposed in Interop 2023on Oct 12, 2022
  2. foolip commented on Nov 11, 2022

    @foolip
    Member

    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.)

  3. nairnandu commented on Feb 1, 2023

    @nairnandu
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions