Is there any reason that we have to use proprietary attributes (min/max) for configuring numeric textbox controls in markup rather than using data- attributes (data-min, data-max)? Using the data- attributes would be an html5 compliant solution, whereas min/max is not compliant in html4 or 5.
1 Answer, 1 is accepted
0
Georgi Krustev
Telerik team
answered on 20 Apr 2012, 03:20 PM
Hello Drew,
Theinput type=number element uses the min and max proprietary attributes to define the minimum and maximum value of the input. They are HTML5 compliant. Hence the expected way to define the min and max of the input is to use the proprietary attributes and not the "data-" attributes. Please note that neither the min/max, neither the "data-" attributes are HTML4 compliant. You can verify my words using this HTML validator.
Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!