Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

Feature Request: HTML5 readiness

Open DangitRick opened this issue 11 years ago • 4 comments

With the advent of HTML5, forms have become much more flexible (http://diveintohtml5.info/forms.html is my favorite reference of such).

New form fields -- email, color, url, number, range, date, search, etc -- coupled with new features such as validation make forms incredibly versatile.

Implementing these new features will allow themes/plugins to have forms with fields which are extremely specific for what they may contain and which have browser-powered validation to ensure only the correct sort of data is being input.

DangitRick avatar Feb 22 '14 06:02 DangitRick

Wondering how we should handle validation. Do you think just changing the type attribute and letting the browser do the validation would be enough? http://www.sitepoint.com/html5-form-validation/

That should have enough browser support: http://caniuse.com/#search=validation

bfintal avatar Feb 22 '14 07:02 bfintal

Where HTML5 allows validation, I think it should be definitely included -- it'll allow users more immediate feedback w/o the requirement of JS/server-side work. That's not to say those options can't be there as fallbacks (and server-side fallbacks are definitely a good idea when saving stuff to the database, of course), but if the browser can warn a user about what's wrong, then they can fix it w/o having to wait for a page reload.

DangitRick avatar Feb 22 '14 07:02 DangitRick

+1 on this one - I would love to be able to use the full range of available form inputs.

MickeyKay avatar Feb 24 '14 05:02 MickeyKay

The HTML5 type="color" implementation in some browsers is terrible (Chrome on Mac simply opens OS X's color picker, which is… lame, in my opinion)… The problem is that sure, they allow you to pick an arbitrary color from swatches, but there isn't always a place to type in a hex code, which seems like something which should be available for a color option.

DangitRick avatar Feb 26 '14 04:02 DangitRick