Skip to content

Set autocomplete="off" on the helper textarea - #6057

Open
rufatkul wants to merge 1 commit into
xtermjs:masterfrom
rufatkul:add-autocomplete-off
Open

Set autocomplete="off" on the helper textarea#6057
rufatkul wants to merge 1 commit into
xtermjs:masterfrom
rufatkul:add-autocomplete-off

Conversation

@rufatkul

Copy link
Copy Markdown

On iOS/iPadOS Safari, focusing a terminal brings up the keyboard AutoFill accessory offering passwords / credit cards / contact info, because the hidden helper textarea carries no autocomplete hint and Safari treats it as an autofillable form field.

The textarea already sets the sibling hints — autocorrect, autocapitalize, spellcheck — so this adds the missing autocomplete="off". Verified on iPadOS Safari: the AutoFill suggestions no longer appear when the terminal gains focus. (Chrome for iOS draws its own autofill bar and ignores the hint by policy, so this helps Safari/WebKit-hinted browsers only.)

No behavior change on desktop browsers.

Without an autocomplete hint, focusing a terminal on iOS/iPadOS Safari
pops the AutoFill accessory (passwords / credit cards / contacts) for
the hidden textarea. The sibling hints (autocorrect, autocapitalize,
spellcheck) are already set; this adds the missing one.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant