Quote:
Originally Posted by Philip M
I have to say - while some 80% of browsers still in use do not support HTML5, stick with Javascript.
|
according to
http://caniuse.com/#feat=form-validation, most users last month could expect the full validation set, and pattern is one of the most supported specific features of that.
considering tablets are the #1 wish-list item this year, expect IE to take a big hit by the 31st. i expect the numbers for jan, when they come out in feb, will show at least 2/3 if not 3/4. let's hope!
js should be used to provide graceful degradation.
but the html5 costs almost nothing, and even right now runs works often than not, and works for those poor folks with javascript disabled we hear soo much about.
i guess why code 5 lines when 20 will do right?
i didn't go all out say simply use <input type=date>, that's crazy talk!