Skip to content

prevent assigning empty for="" attributes to <label>s #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

bbonf
Copy link
Contributor

@bbonf bbonf commented Aug 5, 2024

This is a fix for an extremely minor but annoying bug encountered in Firefox.

Some form fields, like a radio button selection field, do not have a singular element with an id that can be used in a for="" attribute for the field's <label>. The current template code defaults to an empty for="".

Quite harmless, except for the fact that Firefox will log a cryptic Empty string passed to getElementById() warning every time you hover over the label.

@bbonf bbonf requested a review from miggol February 18, 2025 09:31
Copy link
Contributor

@miggol miggol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. And merging immediately

@miggol miggol merged commit 40aa68d into develop Jun 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants