Follow-up to r64866: follow the HTML5 spec when validating floats and ints, and suppo...