Phenomenon
Browser autocomplete suggestions (for forms, addresses, etc.) do not appear when typing in contenteditable regions, even when appropriate autocomplete attributes are set. This limits the usefulness of contenteditable for form-like inputs.
Reproduction example
- Create a contenteditable div with
autocomplete="name". - Start typing a name that has been previously entered in forms.
- Observe whether autocomplete suggestions appear.
Observed behavior
- In Chrome on macOS, autocomplete suggestions do not appear for contenteditable.
- The
autocompleteattribute is ignored. - Users cannot benefit from browser autocomplete features.
Expected behavior
- Autocomplete suggestions should appear for contenteditable when appropriate attributes are set.
- The behavior should match standard input elements.
- Form-like contenteditable regions should support autocomplete.