rails/rails — Issue #3454: number_field generates invalid html5
Author: slbug
Created: 2011-10-27 22:04:09+00:00
State: open

Field: 'count' with integer type

Form: f.number_field :count, required: true

Html:

Validation error: Attribute size not allowed on element input at this point.

tested on master, not sure if this issue present in 3.1

P.S. Also is it possible to get rid of self-closing tags in form helpers? It's not needed for html5