I have been messing around with autocomplete, and here is my take:
The current autocomplete lets you do some things autofill will not do:
- Search for items that do not necessarily start with the typed text
- Display a list of items that are related to the autofill, including images and extra description. See some of the examples.
You can get close to autofill capabilities by using autoFocus. With that flag on, when you press a tab, the top item will automatically populate the field, which is the same thing that would happen in an autofill, but with the added benefit of being able to search in custom ways.
That said, usability is not quite the same as autofill, and you have to press tab twice to get out of a field. Once to select the top item, and then again to change focus, which is annoying. But, autofill is such a subset of the capabilities of autocomplete, then its probably best to use Chris's code, or code like it, as a recipe to make autocomplete do what you want to do.