The API for form elements in standard HTML and in Polymer iron-form elements is more complicated than it needs to be. I propose that every element with a name attribute would have a corresponding value attribute, and we call it a day.
For example, the API for paper-radio-group element...
... but could be better than the select list API by doing away with selected boolean and instead stay consistent with the "every element with a name attribute has a corresponding value attribute" proposal...
The API for form elements in standard HTML and in Polymer iron-form elements is more complicated than it needs to be. I propose that every element with a
name
attribute would have a correspondingvalue
attribute, and we call it a day.For example, the API for
paper-radio-group
element...... could become simpler by modeling after a standard HTML select list like...
... but could be better than the select list API by doing away with
selected
boolean and instead stay consistent with the "every element with a name attribute has a corresponding value attribute" proposal...