rspec/rules/S1078/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

25 lines
725 B
Plaintext

== 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
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
endif::env-github,rspecator-view[]