Skip to content

Commit d17bc57

Browse files
authored
WebUI: remove invalid for attribute
The `for` attribute can only reference a small set of elements and `span` is not one of them. See: https://html.spec.whatwg.org/multipage/forms.html#category-label PR #23754.
1 parent 3a46cf8 commit d17bc57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/webui/www/private/addtorrent.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,31 +333,31 @@
333333
<tbody>
334334
<tr>
335335
<td class="noWrap">
336-
<label for="size">QBT_TR(Size:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
336+
<label>QBT_TR(Size:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
337337
</td>
338338
<td class="fullWidth">
339339
<span id="size">QBT_TR(Not available)QBT_TR[CONTEXT=AddNewTorrentDialog]</span>
340340
</td>
341341
</tr>
342342
<tr>
343343
<td class="noWrap">
344-
<label for="createdDate">QBT_TR(Date:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
344+
<label>QBT_TR(Date:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
345345
</td>
346346
<td class="fullWidth">
347347
<span id="createdDate">QBT_TR(Not available)QBT_TR[CONTEXT=AddNewTorrentDialog]</span>
348348
</td>
349349
</tr>
350350
<tr>
351351
<td class="noWrap">
352-
<label for="infoHashV1">QBT_TR(Info hash v1:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
352+
<label>QBT_TR(Info hash v1:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
353353
</td>
354354
<td class="fullWidth">
355355
<span id="infoHashV1">QBT_TR(Not available)QBT_TR[CONTEXT=AddNewTorrentDialog]</span>
356356
</td>
357357
</tr>
358358
<tr>
359359
<td class="noWrap">
360-
<label for="infoHashV2">QBT_TR(Info hash v2:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
360+
<label>QBT_TR(Info hash v2:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
361361
</td>
362362
<td class="fullWidth">
363363
<span id="infoHashV2">QBT_TR(Not available)QBT_TR[CONTEXT=AddNewTorrentDialog]</span>

0 commit comments

Comments
 (0)