why use proprietary attributes?

2 posts, 0 answers
  1. Drew
    Drew avatar
    3 posts
    Member since:
    Apr 2012

    Posted 19 Apr 2012 Link to this post

    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.
  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 20 Apr 2012 Link to this post

    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.

    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!
Back to Top