Skip to content

fpv search: add a unique name attribute to fully kill autofill#81

Open
itamarwe wants to merge 1 commit into
claude/blog-post-clarifications-yvwp30from
claude/fpv-search-autofill-name-yvwp30
Open

fpv search: add a unique name attribute to fully kill autofill#81
itamarwe wants to merge 1 commit into
claude/blog-post-clarifications-yvwp30from
claude/fpv-search-autofill-name-yvwp30

Conversation

@itamarwe

@itamarwe itamarwe commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Follow-up to #80 (already merged), which added autocomplete="off" to the gallery search input — that alone wasn't enough. With no name attribute, iOS/Chrome fall back to heuristics on the placeholder/aria-label text and still offered autofill.

Adds name="site-search-query" — long and specific per Apple's own guidance, so it isn't mistaken for a short field like name="q" would be, which aggressive iOS heuristics can misclassify as a contact-form field.

Same as the prior patches: this edits the built bundle (public/fpv/assets/index-ObpdO5MX.js) directly, since the viewer source lives in fpv-drone-strikes-lebanon-dataset — the durable fix should land there on the next rebuild.

Verified: patched file passes node --check; served public/ headlessly and confirmed the rendered DOM:

<input type="search" name="site-search-query" placeholder="" aria-label="Search videos"
       autocomplete="off" autocorrect="off" spellcheck="false" value="">

🤖 Generated with Claude Code

https://claude.ai/code/session_01YVLz2Gms21jzv8S6NE1XaT


Generated by Claude Code

autocomplete=off alone wasn't enough — with no name attribute, iOS/Chrome
fall back to heuristics on the placeholder/aria-label text and still
offer autofill. Adds name="site-search-query" (long and specific, per
Apple's own guidance, so it isn't mistaken for a contact-form field like
name="q" would be). Verified in the rendered DOM headlessly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVLz2Gms21jzv8S6NE1XaT
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
itamarwe-github-io Ready Ready Preview, Comment Jul 5, 2026 7:40pm

itamarwe commented Jul 5, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #83, which consolidates this PR's content plus #79 into a single PR against master. Safe to close once #83 merges.


Generated by Claude Code

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.

2 participants