Skip to content

Platform-Provided Behaviors for Custom Elements #3971

@anaskim

Description

@anaskim

Specification

Explainer: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PlatformProvidedBehaviors/explainer.md
WHATWG issue: whatwg/html#12150

Description

This feature introduces "Platform-Provided Behaviors" to ElementInternals, allowing custom elements to adopt native behaviors without extending native elements or reimplementing complex logic. It modifies attachInternals to accept a list of behaviors, starting with HTMLSubmitButtonBehavior, which wires up form submission on activation.

Documentation

https://github.com/MicrosoftEdge/MSEdgeExplainers/tree/main/PlatformProvidedBehaviors

Browser support

Chromium: Positive, prototyping - Chrome Platform status entry
Mozilla: No signal mozilla/standards-positions#1380
WebKit: No signal WebKit/standards-positions#642

Metadata

Metadata

Assignees

No one assigned

    Labels

    early featuresFeature definition work for features without shipping implementationsfeature definitionCreating or defining new features or groups of features.feature entry requestA request for a new web platform feature entry

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions