Skip to content

Add platform-provided behaviors for custom elements & submit behavior#12409

Draft
anaskim wants to merge 1 commit intowhatwg:mainfrom
anaskim:platform-provided-behaviors-1
Draft

Add platform-provided behaviors for custom elements & submit behavior#12409
anaskim wants to merge 1 commit intowhatwg:mainfrom
anaskim:platform-provided-behaviors-1

Conversation

@anaskim
Copy link
Copy Markdown
Member

@anaskim anaskim commented Apr 27, 2026

#12150

This change introduces platform-provided behaviors, a mechanism that allows autonomous custom elements to adopt built-in HTML element capabilities via attachInternals(). The initial element behavior is HTMLSubmitButtonBehavior, which gives a custom element submit button semantics including form submission, activation, focusability, and an implicit ARIA role.

Explainer: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PlatformProvidedBehaviors/explainer.md

(See WHATWG Working Mode: Changes for more details.)


/custom-elements.html ( diff )
/dom.html ( diff )
/form-control-infrastructure.html ( diff )
/forms.html ( diff )
/index.html ( diff )
/interaction.html ( diff )
/semantics-other.html ( diff )

@anaskim anaskim marked this pull request as draft April 27, 2026 21:36
@anaskim anaskim force-pushed the platform-provided-behaviors-1 branch from 0456d21 to 809a55a Compare April 27, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant