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
Copy file name to clipboardExpand all lines: xwiki-platform-distribution/xwiki-platform-distribution-flavor/xwiki-platform-distribution-flavor-test/pom.xml
Copy file name to clipboardExpand all lines: xwiki-platform-tools/xwiki-platform-tool-standards-validator/src/main/java/org/xwiki/validator/HTML5DutchWebGuidelinesValidator.java
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1160,12 +1160,16 @@ public void validateRpd13s1()
1160
1160
if (id != null) {
1161
1161
// Looking for the label associated to the input.
1162
1162
booleanhasLabel = false;
1163
-
for (Elementlabel : getElement(ELEM_BODY).getElementsByTag("label")) {
1163
+
StringlabelTagName = "label";
1164
+
for (Elementlabel : getElement(ELEM_BODY).getElementsByTag(labelTagName)) {
1164
1165
if (id.equals(label.attr("for"))) {
1165
1166
hasLabel = true;
1166
1167
break;
1167
1168
}
1168
1169
}
1170
+
// From MDN webdocs: Alternatively, you can nest the <input> directly inside the <label>,
1171
+
// in which case the for and id attributes are not needed because the association is implicit
0 commit comments