Repository navigation
fix: name the page's root tab strip by its <title>, not main's run-together words - #6294
Merged
Merged
Conversation
…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
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A page's navigation tab strip (the first
lf-tabsdirectly inmain) took its accessible name fromaddressableLabel(main). #6264 deliberately stoppedmainand other plain elements taking a name from a heading inside them, so that call fell through tomain's words run together: the strip intest_a_tab_strip_is_named_as_the_chrome_names_its_setwas named "Redo the kitchen Plan Costs Cabinets first. Under budget.…". The strip now takes the page's authored<title>throughauthoredTitle(), 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.authoredTitleis newly exported fromwidget-api.jsand documented inmodule-reading.md, because a package can't read the title itself:document.titlecarries 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 onmainand passes with the change.pnpm run check:browseralso passes. Strips named by their section's heading or byaria-labelare unchanged.Closes #6290 — automated triage