You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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
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!
The text was updated successfully, but these errors were encountered: