Fieldset should support readonly attribute #10293
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
topic: forms
What problem are you trying to solve?
Fieldset supports the disabled attribute.
Setting the disabled attribute disables automatically all it's children.
Demo
this is a useful Feature when creating a form manager together with form association.
The form controls support the readonly attribute too, it would make sense to propagate the readonly attribute from the fieldset controls as it's done with the disabled attribute.
Use Case: In a form disable a whole part of a form or make it readonly
What solutions exist today?
Setting disabled on a fieldset automatically disables all controls that support it. A very similar attribute readonly needs to be set manually on all controls.
How would you solve it?
Add support for the readonly attribute on fieldset that would work in a similar way as disabled - propagate readonly to all its children
Anything else?
Only concern is not all controls support readonly, but neither do all html elements disabled.
This would make sense to use for web components that have form association implemented to be handled through a form manager - for example dynamic forms / form builder.
The text was updated successfully, but these errors were encountered: