Re: [w3ctag/design-reviews] Incubation: Platform-provided behaviors for custom elements (Issue #1219)

anaskim left a comment (w3ctag/design-reviews#1219)

Hi @lukewarlow & @bkardell,

Thank you for your review and comments. I've updated the explainer in response to feedback from the TAG and the WHATWG and would like to ask if you could take a look at it again.

Main changes to the explainer include:
- Collapse the three button modes (submit, reset, generic button) into a single `HTMLButtonBehavior` whose `type` property mirrors the `type` attribute of native `<button>` and toggles the active mode at runtime.
- Declare behaviors via a static behaviors class property. The platform instantiates each declared behavior at element creation; authors look up the instance through `internals.behaviors.button`.
- Composition strategy, categorizing behaviors.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1219#issuecomment-5061877911
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1219/5061877911@github.com>

Received on Thursday, 23 July 2026 18:21:06 UTC