Skip to content

Commit

Permalink
Allow <progress> & <meter> as label[for] targets
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Mar 31, 2017
1 parent c8013ba commit 3c9efdf
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/nu/validator/checker/schematronequiv/Assertions.java
Original file line number Diff line number Diff line change
Expand Up @@ -2265,9 +2265,13 @@ else if ("bdo" == localName && atts.getIndex("", "dir") < 0) {
formElementIds.addAll(ids);
}

if (("input" == localName && !hidden) || "textarea" == localName
|| "select" == localName || "button" == localName
|| "output" == localName) {
if (("button" == localName //
|| "input" == localName && !hidden) //
|| "meter" == localName //
|| "output" == localName //
|| "progress" == localName //
|| "select" == localName //
|| "textarea" == localName) {
formControlIds.addAll(ids);
}

Expand Down

0 comments on commit 3c9efdf

Please sign in to comment.