angular/angular.js — pull request #8250 by caitp (2014-07-18 01:51:44+00:00)
Title: fix(input): by default, do not trim input[type=password] values

Previously, all input types using ngModel and textInputType() would trim
values if the ng-trim attribute was unspecified. This is undesirable for
passwords because a user's input should always be canonical in that case.

This CL changes this behaviour by only trimming by-default if the input type
is not password. In the future, if other input types need to be checked, or if
the input type needs to be checked at runtime, this may be refactored to
support those cases.

BREAKING CHANGE:

Previously, input[type=password] would trim values by default. This is no
longer the case, and requires an explicit `ng-trim="value other than 'false'"`
to ensure that the value is trimmed in casees where this is actually
desirable.

Example:

```html

```

Closes #8230