Skip to content

The document frame is named, not titled - #457

Open
serenakeyitan wants to merge 1 commit into
mainfrom
frame-named-not-titled
Open

The document frame is named, not titled#457
serenakeyitan wants to merge 1 commit into
mainfrom
frame-named-not-titled

Conversation

@serenakeyitan

Copy link
Copy Markdown
Collaborator

Fixes #456.

Hover the landing page's "Create a free doc" button and hold still: Chrome shows a native tooltip reading Document content. It is not the button's. The shell renders every doc inside <iframe title="Document content" sandbox="allow-scripts">, and Chrome uses an iframe's title as the hover label for anything inside the frame that has no title of its own. So the label leaks onto every doc, everywhere the cursor rests; the CTA is just where people stop moving.

Fix

titlearia-label on the frame in shell/src/document-shell.jsx. Assistive tech still gets "Document content" as the frame's accessible name; the browser no longer paints it as a tooltip. Nothing else in the tree references the string — no test or selector keys on the iframe's title.

Shell bundle rebuilt (server/runtime/shell.DznZ2B84.js + manifest); the built output carries "aria-label":"Document content" and no title on the frame.

npm test76/76 offline.

🤖 Generated with Claude Code

Hovering anywhere in a doc and holding still made Chrome show
"Document content" as a tooltip. The text is the shell's iframe title,
and the browser uses an iframe's title as the hover label for anything
inside it that has none of its own. People noticed it on the landing
page's CTA because that is where the cursor stops.

aria-label keeps the frame's accessible name and drops the tooltip.
Shell bundle rebuilt.

Fixes #456.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Preview

Open this: https://pr-457-tdoc-preview.jyshi1107.workers.dev/ — the homepage, this PR's code
carrying the landing version in this PR's checkout.
Or a document: https://pr-457-tdoc-preview.jyshi1107.workers.dev/d/conway-life/v/2

This link is unique to this PR. New commits update the same URL. It is not tdoc.dev.

Preview has no Durable Object — concurrent comments use the KV fallback. Data expires in 14 days.

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.

The document frame shows its own name as a tooltip

1 participant