-
Notifications
You must be signed in to change notification settings - Fork 281
Platform-Provided Behaviors for Custom Elements #3971
Copy link
Copy link
Open
Labels
early featuresFeature definition work for features without shipping implementationsFeature definition work for features without shipping implementationsfeature definitionCreating or defining new features or groups of features.Creating or defining new features or groups of features.feature entry requestA request for a new web platform feature entryA request for a new web platform feature entry
Metadata
Metadata
Assignees
Labels
early featuresFeature definition work for features without shipping implementationsFeature definition work for features without shipping implementationsfeature definitionCreating or defining new features or groups of features.Creating or defining new features or groups of features.feature entry requestA request for a new web platform feature entryA request for a new web platform feature entry
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