This is a migrated thread and some comments may be shown as answers.

why use proprietary attributes?

1 Answer 157 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 1
Drew asked on 19 Apr 2012, 09:35 PM
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

Sort by
0
Georgi Krustev
Telerik team
answered on 20 Apr 2012, 03:20 PM
Hello Drew,

 
The input 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!
Tags
NumericTextBox
Asked by
Drew
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or