Improved handling of autocomplete for attributes.