Module: Yaks::HTML5Forms
- Defined in:
- lib/yaks/html5_forms.rb
Overview
Based on the HTML living standard over at WHATWG html.spec.whatwg.org/multipage/forms.html
Does not aim to be complete, does aim to be a strict subset.
Constant Summary collapse
- INPUT_TYPES =
[ :checkbox, :color, :date, :datetime, :datetime_local, # :datetime-local in the spec :email, :file, :hidden, :image, :month, :number, :password, :radio, :range, :reset, :search, :tel, :text, :time, :url, :week, :select, :textarea, :datalist, :legend ]
- FIELD_OPTIONS =
{ type: nil, required: false, rows: nil, value: nil, pattern: nil, maxlength: nil, minlength: 0, size: 20, readonly: false, multiple: false, min: nil, max: nil, step: nil, list: nil, placeholder: nil, checked: false, disabled: false }