fix(input): improve html5 validation support

This CL improves mocking support for HTML5 validation, and ensures that it
works correctly along with debounced commission of view values.

Closes #7936
This "test helper" makes me feel uncomfortable here... Can we not set the `validity` property on the element in the test?