Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
w3c validation errors due to 'required' attribute on input type select #141
The w3c validator (http://validator.w3.org/#validate_by_input) raises the following error on a form generated using simple_form:
Line 15, Column 123: Attribute required not allowed on element select at this point.
The form snippet causing the issue is given below:square thumbnail
According to: (http://www.w3schools.com/html5/html5_form_attributes.asp) the required attribute only works with the following types: text, search, url, telephone, email, password, date pickers, number, checkbox, radio, and file
Using the "required" attribute on the select tags raises a w3c error.
The simple_form code used to generate the display_size:
f.input :display_size, :collection => @photo.possible_sizes, :prompt => 'Please select size'