I have just noticed that I am coding stuff like this:
<input type="text" ng-model="userName" id="userName" name="userName" />
And it occurs to me that I have access to the data though ng-data. I will never use getElementById() or getElementsByName().
Are theid= and name=just cluttering my HTML, or might I ever need them?
[Update] might they be of some use for automated testing?
namemight be useful for accessibility and automation. For example for a password manager.