-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: custom elementsRelates to custom elements (as defined in DOM and HTML)Relates to custom elements (as defined in DOM and HTML)topic: forms
Description
What is the issue with the HTML Standard?
Currently a custom element can opt-in to be a fully form-associated element via static formAssociated = true;
, this comes with a few different bits of functionality. Firstly it makes the element labelable, but it also makes it so stuff like adding the disabled and readonly attributes have an effect. For example, pseudo-classes such as :disabled
, :enabled
, and :valid
all match.
Some built-in elements are labelable but are not form associated, namely <progress>
and <meter>
. Should we expose this to custom-elements so they can get the labelable behaviour without the rest, to better match certain built-ins?
domenic
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: custom elementsRelates to custom elements (as defined in DOM and HTML)Relates to custom elements (as defined in DOM and HTML)topic: forms