How does Safari's (and other browsers) autofill feature work? I'd like to help it out so that it doesn't put incorrect data in the fields, as I've seen it do on some websites. My guess is that it uses the field names in the page markup. Any other ideas?