Using html classes, ids and other identification methods I'd think it would be fairly easy to set up intelligent filtering that differentiates between different types of input fields. Discriminating between input and textarea probably gets you already 90% of the way.
Oh, no, I just meant that most forms with a password field are either log on or sign up forms, which I wouldn't want to bother with preserving locally.