password input fields inconsistant with angular values #8230
Description
~~ Issue 1 ~~
While writing a simple login window I've noticed that adding trailing spaces to password input fields causes the data stored in angular to only trim the stored value, but not correct the HTML5 input field.
for example, typing = "1" (replacing _ with spaces)
will result in the ng-model value being = "1"
but the field visible to the user will show "●●●●●●●●●●●●●●●●●"
Which is inconsistent and misleading to a user
~~ Issue 2 ~~
A different (but likely related) bug I've found is that repeating spaces within the password produces inconsistency in the stored data and it's variable itself
for example, typing = "1________1" (replacing _ with spaces)
will result in the ng-model value being = "1_1" (replacing _ with spaces)
but the ng-model ".length" attribute will be "10", not the expected "3"