Other browsers may contain this text, however, entering "aaa" in an input element whose type attribute is set to "number" means that your value property is empty, so your verification method will most likely regard this as a lack of content and not as numerical value.
<input type="number" value="aaa" />
console.log(document.querySelector('input').value); > ""
I modified your JSFiddle demo to reflect this: http://jsfiddle.net/e1132tg5/3/ .
If you need to accept non-numeric data in an input element, then the solution will simply change your type element to βtextβ instead of βnumberβ and rely solely on your own JavaScript validation methods to handle validation (you think you don't care).
<input type="text" >
You can always use your JavaScript to determine if a user is browsing your site on a mobile device and dynamically changing the type attribute.
An alternative solution would be to inform the user that the field should be numerical if the element is blurred without the presence of text (after IE is automatically deleted), but this would be better discussed on the SE UserExperience Website .
James donnelly
source share