dustindclark / grails-uploadr

HTML5 Drag and Drop file upload plugin for the Grails framework
Other
9 stars 4 forks source link

Name attribute on div #3

Open thoughtassassin opened 8 years ago

thoughtassassin commented 8 years ago

On line 115 of UploadrTabLib.groovy:

out << "<div name=\"${name}\" class=\"${classname}\"></div>"

This ends up rendering a name attribute on a div which fails validation on HTML Tidy:

line 124 column 85 - Error: Attribute “name” not allowed on element “div” at this point.

If the concern is that more than one uploadr needs to exist on a page maybe this could be changed to a data-attribute?