Re: autocomplete on form

I have used form@autocomplete="off" recently too.

It's on a credit card screen, which is only accessed after verifying a
bill or other type of payment... not the kind of page that would be
uncovered by crawling or casual browsing (and the reason I cannot
provide a direct URL). I reckon this would not be uncommon for
'autocomplete' making detecting its usage in the wild problematic.

For what it's worth, I chose form@autocomplete over input@autocomplete
because of a personal preference to limit the number of (HTML4)
validation errors returned.

There is an additional, albeit small, authoring benefit: if I add
another control to that form, it will inherit the autocomplete
behaviour. I don't have to remember to specify autocomplete. I don't
have to worry if the application developers add another field (and
they may not even know this HTML nuance). And I don't have to worry if
the application developers use a framework to add a control, such
frameworks likely not implementing autocomplete. It is easier to
manage a single form element than the set of form control elements.

The above only holds true in our scenario because we do wish for
autocomplete to be disabled for every field within this particular
form.

cheers
Ben

Received on Sunday, 18 January 2009 01:12:31 UTC