Author: t.glaser
Description:
Special:Upload is invalid XHTML:
<tr class="mw-htmlform-field-UploadSourceField"><td class="mw-label"><label for="wpSourceTypeFile">Source filename:</label></td><td class="mw-input"><input id="wpUploadFile" name="wpUploadFile" size="60" type="file" />
The “for” attribute of the <label/> must reference an “id” of another tag, but the tag in question is named “wpUploadFile”.
This is lines 840 (and probably 855) and 1118 of mediawiki-1.19.2/includes/specials/SpecialUpload.php, but a quick diff shows git master (6a2ae3244eb2b8ea9c7dcadb528caca08238913e as of today) seems to also be affected.
I don’t know enough about the intricaties of this code to propose a fix, sorry.
Version: 1.23.0
Severity: normal