angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

IE Document Mode: IE9 Standards Mode - Input Validation Not Working

Open codepj opened this issue 13 years ago • 4 comments

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.

codepj avatar Aug 26 '13 22:08 codepj

Does this happen in Real Actual IE 9™ as well or just IE10 in IE9 mode?

btford avatar Jan 04 '14 00:01 btford

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.

tautvilas avatar Jan 07 '14 10:01 tautvilas

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?

caitp avatar Mar 18 '14 18:03 caitp

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.

IgorMinar avatar Mar 18 '14 21:03 IgorMinar