25 lines
418 B
Plaintext
25 lines
418 B
Plaintext
include::../common/rule.adoc[tag=why]
|
|
|
|
include::../common/rule.adoc[tag=how]
|
|
|
|
include::../common/rule.adoc[tag=examples]
|
|
|
|
==== Noncompliant code example
|
|
|
|
[source,html,diff-id=2,diff-type=noncompliant]
|
|
----
|
|
<label>Favorite food</label>
|
|
----
|
|
|
|
==== Compliant solution
|
|
|
|
[source,html,diff-id=2,diff-type=compliant]
|
|
----
|
|
<label>
|
|
<MyCustomInput />
|
|
Favorite food
|
|
</label>
|
|
----
|
|
|
|
include::../common/rule.adoc[tag=resources]
|