IE Document Mode: IE9 Standards Mode - Input Validation Not Working
In IE 10, when you are in document mode IE9 Standards Mode the input validation does not seem to be working correctly.
Demo on the following page demonstrates issue: http://docs.angularjs.org/api/ng.directive:input.number
Type in letters and it still says it is valid.
Does this happen in Real Actual IE 9™ as well or just IE10 in IE9 mode?
I can confirm this issue. My app is in an IFrame, parent document has such meta tag:
<meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1"/>
So when viewed in IE11 iframe document mode is 9. Number input validation for minimum value does not work.
However if I open this app in IE9 validation works properly.
So, I expect this is because of the check for the input event, although it's hard to say. It's very hard to actually suport these "emulated" browsers, because the user agent string is screwed up (admittedly, we shouldn't be using the UA string in the first place).
I think that #4155 might actually fix this, though, hard to say... @tautvilas can you check that?
I don't think that we should be supporting emulated IEs.
Developers should get IE9 or whatever IE they are targeting as IE10 in IE9 mode is just that - neither IE10 nor IE9.
End users never use such browser, so why ship code that is good only for an obscure corner-case encountered in development.
Also using emulated browsers is not a reliable way to test that the app works on that browser version.