Skip to content

Commit 6308438

Browse files
Add label tags to improve accessibility
1 parent 69afe2c commit 6308438

2 files changed

Lines changed: 20 additions & 12 deletions

File tree

java/org/apache/catalina/manager/HTMLManagerServlet.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,34 +1170,34 @@ private static <U extends Comparable<? super U>> Comparator<Session> comparingNu
11701170
"<table cellspacing=\"0\" cellpadding=\"3\">\n" +
11711171
"<tr>\n" +
11721172
" <td class=\"row-right\">\n" +
1173-
" <small>{3}</small>\n" +
1173+
" <label for=\"deployPath\"><small>{3}</small></label>\n" +
11741174
" </td>\n" +
11751175
" <td class=\"row-left\">\n" +
1176-
" <input type=\"text\" name=\"deployPath\" size=\"20\">\n" +
1176+
" <input type=\"text\" name=\"deployPath\" id=\"deployPath\" size=\"20\">\n" +
11771177
" </td>\n" +
11781178
"</tr>\n" +
11791179
"<tr>\n" +
11801180
" <td class=\"row-right\">\n" +
1181-
" <small>{4}</small>\n" +
1181+
" <label for=\"deployVersion\"><small>{4}</small></label>\n" +
11821182
" </td>\n" +
11831183
" <td class=\"row-left\">\n" +
1184-
" <input type=\"text\" name=\"deployVersion\" size=\"20\">\n" +
1184+
" <input type=\"text\" name=\"deployVersion\" id=\"deployVersion\" size=\"20\">\n" +
11851185
" </td>\n" +
11861186
"</tr>\n" +
11871187
"<tr>\n" +
11881188
" <td class=\"row-right\">\n" +
1189-
" <small>{5}</small>\n" +
1189+
" <label for=\"deployConfig\"><small>{5}</small></label>\n" +
11901190
" </td>\n" +
11911191
" <td class=\"row-left\">\n" +
1192-
" <input type=\"text\" name=\"deployConfig\" size=\"20\">\n" +
1192+
" <input type=\"text\" name=\"deployConfig\" id=\"deployConfig\" size=\"20\">\n" +
11931193
" </td>\n" +
11941194
"</tr>\n" +
11951195
"<tr>\n" +
11961196
" <td class=\"row-right\">\n" +
1197-
" <small>{6}</small>\n" +
1197+
" <label for=\"deployWar\"><small>{6}</small></label>\n" +
11981198
" </td>\n" +
11991199
" <td class=\"row-left\">\n" +
1200-
" <input type=\"text\" name=\"deployWar\" size=\"40\">\n" +
1200+
" <input type=\"text\" name=\"deployWar\" id=\"deployWar\" size=\"40\">\n" +
12011201
" </td>\n" +
12021202
"</tr>\n" +
12031203
"<tr>\n" +
@@ -1224,10 +1224,10 @@ private static <U extends Comparable<? super U>> Comparator<Session> comparingNu
12241224
"<table cellspacing=\"0\" cellpadding=\"3\">\n" +
12251225
"<tr>\n" +
12261226
" <td class=\"row-right\">\n" +
1227-
" <small>{2}</small>\n" +
1227+
" <label for=\"deployWarFile\"><small>{2}</small></label>\n" +
12281228
" </td>\n" +
12291229
" <td class=\"row-left\">\n" +
1230-
" <input type=\"file\" name=\"deployWar\" size=\"40\">\n" +
1230+
" <input type=\"file\" name=\"deployWar\" id=\"deployWarFile\" size=\"40\">\n" +
12311231
" </td>\n" +
12321232
"</tr>\n" +
12331233
"<tr>\n" +
@@ -1260,10 +1260,10 @@ private static <U extends Comparable<? super U>> Comparator<Session> comparingNu
12601260
"<table cellspacing=\"0\" cellpadding=\"3\">\n" +
12611261
"<tr>\n" +
12621262
" <td class=\"row-right\">\n" +
1263-
" <small>{3}</small>\n" +
1263+
" <label for=\"tlsHostName\"><small>{3}</small></label>\n" +
12641264
" </td>\n" +
12651265
" <td class=\"row-left\">\n" +
1266-
" <input type=\"text\" name=\"tlsHostName\" size=\"20\">\n" +
1266+
" <input type=\"text\" name=\"tlsHostName\" id=\"tlsHostName\" size=\"20\">\n" +
12671267
" </td>\n" +
12681268
"</tr>\n" +
12691269
"<tr>\n" +

webapps/docs/changelog.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@
105105
issues do not "pop up" wrt. others).
106106
-->
107107
<section name="Tomcat 10.1.53 (schultz)" rtext="in development">
108+
<subsection name="Web applications">
109+
<changelog>
110+
<add>
111+
<bug>69931</bug>: Add &lt;label&gt; for fields in the HTML manager
112+
application. Patch provided by yukitidev. (schultz)
113+
</add>
114+
</changelog>
115+
</subsection>
108116
</section>
109117
<section name="Tomcat 10.1.52 (schultz)" rtext="release in progress">
110118
<subsection name="Coyote">

0 commit comments

Comments
 (0)