4

I realised that placeholder attribute in Internet Explorer 11 does not work when the cursor is on (what a surprise!) despite that w3schools says it is compatible with ie10+ (even though their try it yourself example does not work well in ie).

This is what users see when they want to login:

enter image description here

so I found about ng-attr-placeholder instead but I cannot seem to make it work.

<input type="password" name="password" id="password" ng-model="user.password" class="form-control" ng-attr-placeholder="Password" required="" autofocus="">

Any ideas what I am doing wrong?

Thank you in advance!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Margarita
  • 277
  • 1
  • 4
  • 17
  • Try again - `placeholder` works fine in IE10 in the "try it yourself" example. And `ng-attr-` wouldn't have fixed it anyway, if it wasn't. All it does is append the attribute with the interpolated value – New Dev Sep 16 '15 at 09:53
  • Not if the cursor is on it unfortunately, anyway i decided to remove autofocus="" in order to disable cursor being automatically on username input – Margarita Sep 16 '15 at 10:07
  • 1
    This is working as designed for IE. See this other post: http://stackoverflow.com/questions/14445891/keep-placeholder-on-focus-in-ie10 – Alain Boucher May 12 '16 at 17:43

0 Answers0