1
Vote

MVC Number Editor Support Range

description

Support for the HTML5 number input type was added in Issue 2 and Changeset 68a34436db0c.

The HTML5 spec for the editor supports max and min attributes that prevent the input from leaving the specified range. Having the Range attribute emit these attributes in addition to data validation max and min would produce a more useful editor.

comments

eilonlipton wrote Dec 30, 2013 at 6:55 PM

There is a general scenario here of mapping more Data Annotations to HTML5 concepts. The issue we have to be aware of is to ensure that there is no conflict between MVC's own client validators (using jQuery Validation) and the browser's validators. We need to ensure there is consistent UI and UX when combining these concepts.