Accepting selected projects for Q2 2024 Check availability
SERVER 02SYSTEM ONLINELAST SYNC: 03:17:44RSS_FEED.XML — PARSE WARNING
HALF ASSEDTECHNICAL NOTES_
EST. 2009ISSUE 04.2BEST VIEWED AT 1024 × 768
TECHNICAL NOTES / PRACTICAL GUIDES / ACCESSIBILITY / RECORD f5d5fe
[ACCESSIBILITY]GUIDE

Building an accessible autocomplete control

POSTED: 07.03.2017AUTHOR: ADMIN11 MIN READCOMMENTS: 0

Autocomplete combines text entry, asynchronous results and listbox navigation. Native input and form behaviour should remain the foundation while ARIA communicates the composite state to assistive technology.

Start from the task and fallback

Use a labelled text input that can submit a valid free-text or selected identifier according to the service rule. The form must return a clear server-side error if script, search or selection fails.

Apply the combobox pattern consistently

Expose expanded state, control relationship and autocomplete behaviour on the input. Represent suggestions as options in one listbox and manage the active descendant without moving DOM focus away from typing.

Define keyboard interaction

Down and Up Arrow move through available options, Enter accepts the active option and Escape closes the popup without unexpectedly clearing the field. Tab follows the form sequence and should not trap the user in results.

Announce useful changes

Communicate result count, active option and important no-result states without announcing every network request. Debounce search, cancel obsolete responses and prevent a slower earlier query replacing newer suggestions.

Test complete states

Exercise keyboard, touch, zoom and current screen-reader/browser combinations with no results, network errors, duplicate labels and long values. Confirm that validation identifies whether text or a controlled selection is required.

ARIA RULE

ARIA describes the implemented interaction; it does not supply selection, focus, validation or fallback behaviour by itself.