Skip to content

fix: name the page's root tab strip by its <title>, not main's run-together words - #6294

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-6290
Nov 17, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-6290

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

A page's navigation tab strip (the first lf-tabs directly in main) took its accessible name from addressableLabel(main). #6264 deliberately stopped main and other plain elements taking a name from a heading inside them, so that call fell through to main's words run together: the strip in test_a_tab_strip_is_named_as_the_chrome_names_its_set was named "Redo the kitchen Plan Costs Cabinets first. Under budget.…". The strip now takes the page's authored <title> through authoredTitle(), the runtime's existing reader for the page's title, so #6264's rule stands and the code keeps its stated intent that the page's title names its navigation.

authoredTitle is newly exported from widget-api.js and documented in module-reading.md, because a package can't read the title itself: document.title carries the On Me count while one is shown, and the authored <title> is told apart from the runtime's only by an internal marker.

Behavior change: the root strip's name is now the page's <title> ("Kitchen plan" in the test) rather than its leading <h1>. The test now expects that. It failed on main and passes with the change. pnpm run check:browser also passes. Strips named by their section's heading or by aria-label are unchanged.

Closes #6290 — automated triage

…gether words

#6264 stopped plain elements other than a section, article, hgroup or
disclosure taking a name from a heading inside them, so `main` lost the
name its leading <h1> gave it. The root tab strip asked `addressableLabel(main)`
for its name and now got main's words run together ("Redo the kitchen Plan
Costs Cabinets first. Under budget.…") as its accessible name.

The strip now takes the page's authored <title> through `authoredTitle()`,
the runtime's reader for the page's title, which widget-api.js exports so
packages need not read the runtime's count-prefixed second <title>.

Behavior change: a page's navigation tab strip is named by the page's
<title> rather than its leading <h1>; the test now expects that.

Closes #6290
@max-sixty
max-sixty merged commit 1653689 into main Nov 17, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix/issue-6290 branch November 17, 2026 11:32
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.

test_a_tab_strip_is_named_as_the_chrome_names_its_set: a root tab strip lost the page title as its name after #6264

2 participants