Element.ariaAutoComplete is an instance property that reflects the aria-autocomplete attribute. Learn the inline, list, both, and none values, how they describe combobox / searchbox / textbox predictions, and how to get or set the property from JavaScript—with five examples and try-it labs.
01
Kind
Instance property
02
Type
String
03
Values
inline · list · both · none
04
Reflects
aria-autocomplete
05
Status
Baseline widely
06
Used on
Combobox / textbox
Fundamentals
Introduction
Autocomplete UIs often show a popup list of suggestions, or complete text inline after the caret—or both. Assistive technologies need to know which pattern you use.
That is what aria-autocomplete communicates. The DOM property ariaAutoComplete lets you read and update the same value from JavaScript.
Do not confuse this with the HTML autocomplete attribute (browser autofill). ariaAutoComplete is about ARIA prediction presentation for widgets.
Concept
Understanding the Property
MDN: the ariaAutoComplete property of the Element interface reflects the value of the aria-autocomplete attribute, which indicates whether inputting text could trigger display of one or more predictions of the user’s intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.
Reflected attribute — mirrors aria-autocomplete.
Get / set — readable and writable string.
Four tokens — inline, list, both, none.
Baseline — widely available since October 2023 (MDN).
Foundation
📝 Syntax
JavaScript
ariaAutoComplete
Value
A string with one of the following values:
Value
Meaning (MDN)
"inline"
Suggested completion text may be inserted dynamically after the caret.
"list"
A collection of possible completions may be displayed (for example a listbox).
"both"
A collection may be shown; one value is auto-selected and completion text appears after the caret.
"none"
No automatic suggestion / prediction UI is presented.
Pattern
📋 Combobox + Listbox (MDN Shape)
MDN’s example starts with aria-autocomplete="inline", then updates to "list" for a combobox that opens a listbox popup:
Related attributes often used with comboboxes: aria-controls, aria-expanded, aria-haspopup, and sometimes ariaActiveDescendantElement for the highlighted option.
Cheat Sheet
⚡ Quick Reference
Goal
Code / note
Read
el.ariaAutoComplete
Listbox popup mode
el.ariaAutoComplete = "list"
Inline completion
el.ariaAutoComplete = "inline"
List + inline
el.ariaAutoComplete = "both"
No predictions
el.ariaAutoComplete = "none"
MDN status
Baseline Widely available
Snapshot
🔍 At a Glance
Four facts about Element.ariaAutoComplete.
Kind
get / set
Instance
Type
string
4 tokens
Reflects
aria-auto…
complete
Baseline
widely
Oct 2023+
Hands-On
Examples Gallery
Examples follow MDN Element: ariaAutoComplete. Labs use a small combobox input so you can safely read and write the property.
📚 Getting Started
Read the reflected value and follow MDN’s combobox update.
Example 1 — Read ariaAutoComplete
Log the current value from a combobox input.
JavaScript
const el = document.getElementById("animal");
console.log(el.ariaAutoComplete);
// HTML includes: aria-autocomplete="inline"
The property returns the attribute string. If the attribute is missing, many browsers return null.
Example 2 — MDN Update to "list"
MDN: change from inline completion to listbox popup mode.
JavaScript
let el = document.getElementById("animal");
console.log(el.ariaAutoComplete); // inline
el.ariaAutoComplete = "list";
console.log(el.ariaAutoComplete); // list
Element.ariaAutoComplete is Baseline Widely available (MDN: across browsers since October 2023). Logos use the shared browser-image-sprite.png sprite from this project.
✓ Baseline Widely available
Element.ariaAutoComplete
String inline / list / both / none — reflects aria-autocomplete.
BaselineWidely available
Google ChromeSupported (ARIA reflection)
Yes
Microsoft EdgeSupported (ARIA reflection)
Yes
Mozilla FirefoxSupported (ARIA reflection)
Yes
Apple SafariSupported (ARIA reflection)
Yes
OperaFollow Chromium support
Yes
Internet ExplorerNo ariaAutoComplete IDL — use setAttribute
No
ariaAutoCompleteBaseline
Bottom line: Use ariaAutoComplete to get/set aria-autocomplete. Prefer "list" for combobox + listbox popups. Match the token to the real UI, and do not confuse it with HTML autocomplete autofill.
Wrap Up
Conclusion
ariaAutoComplete reflects aria-autocomplete so you can declare how text predictions are presented—inline, list, both, or none. Set it to match your combobox or search UI, and keep related ARIA (controls, expanded, active descendant) consistent.
Keep HTML autocomplete separate from ARIA autocomplete
❌ Don’t
Claim "list" when there is no suggestion list
Confuse ARIA autocomplete with browser autofill
Forget to update the property if the UI mode changes
Skip roles on options / listbox for combobox patterns
Rely on autocomplete alone without visible feedback
Summary
Key Takeaways
Knowledge Unlocked
Five things to remember about ariaAutoComplete
Reflected aria-autocomplete string for prediction UI.
5
Core concepts
📄01
Get / set
on Element
Kind
📝02
Four values
inline list both none
Tokens
🔍03
Combobox
search / textbox
Use
✅04
Baseline
widely available
Status
🎯05
Not autofill
ARIA vs HTML
Clarity
❓ Frequently Asked Questions
It reflects the aria-autocomplete attribute as a string, describing whether typing may show predictions for a combobox, searchbox, or textbox, and how those predictions are presented.
No. MDN marks Element.ariaAutoComplete as Baseline Widely available (since October 2023). It is not Deprecated, Experimental, or Non-standard.
One of the strings "inline", "list", "both", or "none".
MDN’s example updates from "inline" to "list", noting that "list" is the expected value for a combobox that invokes a listbox popup.
HTML autocomplete (and autofill) is about browser/password-manager form filling. aria-autocomplete / ariaAutoComplete describes ARIA prediction UI for widgets like comboboxes.
Yes. Reading and writing ariaAutoComplete updates the reflected aria-autocomplete attribute.
Did you know?
Many production comboboxes use aria-autocomplete="list" together with aria-expanded toggling when the suggestion popup opens and closes—the autocomplete token describes the prediction pattern; expanded describes the open state.