You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web: the hidden "Text input" and "Password input" fields stay in the accessibility tree when no text field has focus #594
Rev:29aacb6 (29aacb688883a9712bc27175bdafd99fc6edb421). bridge.js is identical on dev c92e462 (2026-11-11). Target: the web shell (wasm32), app mode and page mode. This report comes from the source; it was not run in a browser.
mount appends two editing proxies to document.body: a <textarea> labelled "Text input" and an <input type="password"> labelled "Password input". They are hidden from sight and from Tab, but not from the accessibility tree, and nothing takes them out of it while no Rune text field has focus.
So every screen of every app shows assistive technology two form fields, even a screen with no text field. A screen reader's virtual cursor reaches them, and its list of form fields shows them. Focusing one does nothing, because no Rune field is behind it.
#109 covers the shared name (every field is announced as "Text input"). This issue is about the fields being exposed when no field is in use.
Source steps:
crates/rune/src/platform/web/bridge.js:50-65 (mount) creates both fields.
Each gets aria-label "Text input" or "Password input".
Each gets opacity:0, a 1×1 px box, pointer-events:none and tabIndex = -1.
Both are appended to document.body.
None of these remove an element from the accessibility tree. display:none, visibility:hidden, the hidden attribute, aria-hidden="true" and inert do.
sync (bridge.js:218-242) runs whenever the focused field changes. With no field (!key) it clears the textarea's value and moves focus back to the canvas, but leaves both fields exposed.
The bridge hides things from assistive technology in one place only: bridge.js:432-434, which applies visibility:hidden, inert and aria-hidden to the prerendered static page once the live page replaces it. The two fields leave the DOM only in destroy (bridge.js:480).
web_a11y_items skips text inputs (runtime/web/a11y.rs:331-335), so these two proxies are the only accessibility objects for Rune text fields. One of them is always exposed, even while the other one is in use.
Expected:
With no Rune text field focused, neither proxy is in the accessibility tree.
Actual: both proxies are in the accessibility tree at all times, from mount to destroy.
Suggested direction:
Start both proxies inert.
In sync, set h.textarea.inert = !key || secure and h.password.inert = !key || !secure. On the !key path, do it after focus has moved back to the canvas.
activate then focuses a field that is never inert.
inert also removes the field from focus and from the accessibility tree. That avoids aria-hidden on a focused element, which browsers warn about.
Both hidden editing proxies (Text input and Password input) were mounted without inert and never marked inert when inactive, keeping them exposed in the browser accessibility tree. Fixed on dev in #1473 (7df9420): both proxies now start inert and only the active proxy is exposed while a Rune text or password field has focus.
Activity
Hona commentedon Nov 23, 2026
Both hidden editing proxies (Text input and Password input) were mounted without inert and never marked inert when inactive, keeping them exposed in the browser accessibility tree. Fixed on dev in #1473 (7df9420): both proxies now start inert and only the active proxy is exposed while a Rune text or password field has focus.