The UX team and the FED team are arguing for days on a request from a customer about a test field "type = number".
The current implementation is HTML standards-compliant and leans to W3C specifications regarding the concept of "[Integer]"
According to the customer, this field should accept only the numbers 0 through 9. He wants to block users to inserting "- + . ," his request to us is to "force/overwrite" the attribute itself.
Obviously, there are bunch of solutions to achieve what the customer requires, but:
- All of these solutions are via JS
- It would change the nature of the text field (especially in terms of accessibility)
- Is an expensive solution in terms of maintenance
our UX solution is:
- Respect the semantics of HTML and the browser behavior (ex Chrome vs IE)
- Optimize the label describing that the field accepts only integers
- Publish an self-explanatory placeholder like "ex. 14568975"
What do you think, in general, to change the natural behaviour of HTML objects?