rspec/rules/S1078/rule.adoc

25 lines
725 B
Plaintext
Raw Normal View History

== Why is this an issue?
The <label> tag defines a label for an <input> element.
The <label> element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the <label> element, it toggles the control.
The for attribute of the <label> tag should be equal to the id attribute of the related element to bind them together.
The following code snippet illustrates this rul
2022-01-25 18:36:46 +01:00
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
=== on 8 Jul 2013, 18:26:58 Freddy Mallet wrote:
Is implemented by \http://jira.codehaus.org/browse/SONARPLUGINS-2997
2022-01-25 18:36:46 +01:00
endif::env-github,rspecator-view[]