CMS MADE SIMPLE FORGE

Form Builder

 

[#9945] Invalid HTML for input type "file"

avatar
Created By: Robin (Cerulean)
Date Submitted: Tue Apr 08 22:02:03 -0400 2014

Assigned To:
Version: 0.7.3
CMSMS Version: 1.11.10
Severity: Minor
Resolution: Accepted
State: Open
Summary:
Invalid HTML for input type "file"
Detailed Description:
Form Builder generates tags for "size" and "maxlength" on file-type input
fields. This is invalid markup - these tags are not allowed for input
type="file".


History

Comments
avatar
Date: 2014-09-21 08:49
Posted By: Rolf (rolf1)

My page with that field is W3c valid and also has those tags in it...
      
avatar
Date: 2014-09-22 17:11
Posted By: Robin (Cerulean)

Not sure how your page can validate.
The only valid tags for a file upload input are: accept, multiple, required,
value
Ref:
http://www.w3.org/html/wg/drafts/html/master/forms.html#input-type-attr-summary
      
avatar
Date: 2014-10-25 05:06
Posted By: Rolf (rolf1)

Check http://www.rolftjassens.com/demo/formbuilder-template
Has no notices regarding the upload field...

However I will take a look at this when the code base is stable and we give the
module an overhaul.
Therefor will set status accepted for now.
      
avatar
Date: 2015-01-29 19:29
Posted By: Robin (Cerulean)

FYI:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.rolftjassens.com%2Fdemo%2Fformbuilder-template&charset=%28detect+automatically%29&doctype=Inline&group=0
Line 28, Column 161: Attribute size not allowed on element input at this point.
Line 28, Column 161: Attribute maxlength not allowed on element input at this
point.
      
Updates

Updated: 2014-10-25 05:06
resolution_id: 11 => 6

Updated: 2014-09-21 08:50
resolution_id: => 11