Open nclm opened 2 years ago
You might want to take a look at the documentation about forms. Especially about the id
attribute in section Common Fields Attributes.
id | sets the field id as well as the for attribute on the label |
---|
Because the value of labels is greatly reduced without id
and setting id
is not a requirement, my opinion is that I'd like to see a default id
attribute set when it's not provided.
You might want to take a look at the documentation about forms. Especially about the
id
attribute in section Common Fields Attributes.
Oh thanks, I missed that!
Because the value of labels is greatly reduced without
id
and settingid
is not a requirement, my opinion is that I'd like to see a defaultid
attribute set when it's not provided
Yes, I agree as well. It could be randomly generated, generic like formname-field1
, or even based on the name
field (in which case the id
attribute would be used to override the default). As long as it works. I cannot see a use case where someone would not want a for
attribute on their labels, so it might as well be there by default.
It seems that Grab generates form labels without
for
attributes:However,
for
attributes are very important to create the connection between thelabel
and the form field. This should be rather look like this:Could this be implemented? Thanks!