Topic on Extension talk:SimpleBatchUpload

id attribute on textarea makes the HTML invalid with multiple batch upload forms

1
Joeytje50 (talkcontribs)

With the change that implemented a textarea that allows you to customise the description for uploads, without needing to edit the page, the simple batch upload currently features an element with a non-unique id attribute. This makes the HTML invalid, which may cause unexpected behaviour when trying to run JavaScript applicable to #wfUploadDescription, since that id will be reused for every batch upload textarea.

The solution would be to simply remove the id attribute from the textarea, or to give the id a unique number, for example by keeping track of a counter variable within the extension.

Reply to "id attribute on textarea makes the HTML invalid with multiple batch upload forms"