3. Accessibility
LNS sites are for everyone, including people who use a screen reader, only a keyboard, magnification, high contrast or a reading mode. Accessibility is a core goal of LNS web, next to privacy. This section says what works today, what does not, and what we plan to build.
Describes Names Browser 0.4.6 with core 0.3.6, the gateway at <name>.lnsweb.online (round 3, live) and lns publish, as read in the code on 27 November 2026. Nothing here has yet been tested with a screen reader, or by keyboard alone in the running apps. This section makes no claim of conformance to any standard.
3.1 Goals
People should be able to read and move around an LNS site whether they:
- use a screen reader;
- use only a keyboard;
- magnify or zoom the screen, or use larger text;
- use high contrast or dark mode;
- use a reading mode, such as Chrome's Reading mode;
- turn on reduced motion;
- have low vision or colour blindness.
The benchmark is WCAG 2.2 at Level AA. It applies to sites, and to the parts that clients add around a site: the Names Browser's own controls and the gateway's banner.
The design starts in a good place. Pages are plain HTML with no scripts (section 7.1), so there are no script widgets to break assistive tools. At the gateway, the visitor's own browser draws the page, so its usual accessibility features apply. The Names Browser is different: it draws pages itself, so it has to do this work itself, and today it mostly does not.
3.2 Names Browser today
The Names Browser does not use a web engine for pages. The core turns the page into a render tree, and Qt Quick items draw it: StaticPage.qml for the scroll view, StaticNode.qml for each box, text run, image, table and disclosure (section 7.1). What a person with assistive technology gets depends on what those items expose.
3.2.1 What works
| Feature | What this client does | Where |
|---|---|---|
| Zoom | Ctrl + plus and Ctrl + minus change the zoom in 10% steps from 50% to 200%. Ctrl + 0 resets it. Zoom is kept per tab. It scales text, spacing and images, and text wraps to the window. | Main.qml:4054-4056, :944 setZoom; logic.mjs:3411 clampZoomPercent; StaticNode.qml:235 |
| Dark mode | Pages are drawn in Basecamp's light or dark theme. The core applies @media (prefers-color-scheme: dark) and light rules to match, and redraws the page when the theme changes (section 7.6). A page with no colours gets dark text on white (#18202c on #ffffff) or light text on navy (#e6edf7 on #0f172a). | Main.qml:142, :254-257, :2669; static_render.rs:238-240, :2107-2109 |
| Interface text size | The browser's own controls scale their text by Basecamp's theme scale. | Main.qml:143 px() |
| Keyboard shortcuts | Ctrl + L (address bar), Ctrl + T and Ctrl + W (open and close a tab), Ctrl + R (reload), Ctrl + [ and Ctrl + ] (back and forward), Ctrl + F (find in page), Ctrl + Y (history), zoom as above, and Escape to close menus, bars and dialogs. Enter in the address bar opens the address. | Main.qml:4035-4070, :4371 |
| Find in page | Ctrl + F opens a find bar with a text field. | Main.qml:4042-4048, :4469 |
| Headings | The core keeps the tag of every heading (h1 to h6) in the render tree, and gives headings larger or bolder default styles (for example h1 32 px, h2 24 px, h3 20 px). | static_render.rs:2389-2410, :4955-4970 |
| Missing images | When an image cannot be shown, its alt text is drawn in its place, if the box is at least 48 by 24 pixels. The text is grey on a dark box (#94a3b8 on #1e293b, 5.7:1). | StaticNode.qml:908-926, :875-877 |
| Motion | Page CSS transitions and animations are not drawn (section 7.10.1), so pages do not move. The interface has two short animations (120 ms and 320 ms), and no others were found. | Main.qml:4337, :4446 |
3.2.2 What is missing
- No accessibility roles or names set. None of the four QML files sets any
Accessibleproperty (Accessible.role,Accessible.nameand so on). The render tree knows which text is a heading, a link, a list item or a table cell (itstagfield), but the QML never readstag. So the code does nothing to tell a screen reader that a line is a heading, which level it is, or that some text is a link. Qt Quick may expose some text by default; we have not checked what VoiceOver or Orca actually reads. - No Tab path set. Page links are mouse areas, or links inside rich text handled by
onLinkActivated(StaticNode.qml:751-765,:821,:928,:971). The browser's own buttons are drawn rectangles with mouse areas (for example Back,Main.qml:4221-4232). No item setsactiveFocusOnTab, and the QML has noKeyNavigationor key handlers. As written, the code gives no way to reach a link, adetailstoggle (StaticNode.qml:1037) or a toolbar button from the keyboard, except through the shortcuts above. - No visible focus ring on links or buttons. Only text fields show focus, by changing their border colour: the address bar, the history search and the favourite fields (
Main.qml:4320,:5556,:6222,:6244,:6317). - No keyboard scrolling. The page is a
Flickablewith a scroll bar (StaticPage.qml:145-156). The QML adds no handling for the arrow keys, Page Up, Page Down, Space, Home or End. - Text selection not set up. Page text is drawn with Qt
Textitems, not editable text items, and the QML sets no selection (StaticNode.qml:772). We expect that page text cannot be selected, so tools that read the selected text aloud, and copying, would not work on it. Not tested. - Page text ignores the system text size. Page text starts at the page's own size, 16 pixels if it sets none, times the zoom, and never below 9 pixels (
StaticNode.qml:235). We have not checked whether Basecamp's theme scale follows the operating system's text size setting. - No high-contrast or reduced-motion queries. The core matches only
min-width,max-widthandprefers-color-scheme. Aprefers-contrast,forced-colorsorprefers-reduced-motionrule never applies (eval_media_feature,static_render.rs:2094-2113). Whether Basecamp's theme follows the system's dark mode or high-contrast setting was not checked. langis ignored. The profile acceptslangonhtml(section 7.2.1), but the core never reads it.aria-labelhas almost no effect. It is read only onsvg, where it becomes the image'saltin the render tree (sanitize.rs:1189;static_render.rs:4534). The SVG canvas does not draw it, and nothing else exposes it.- Some
alttext is lost. When the core refuses an image (an outside URL, or a baddata:image), the whole image is dropped from the tree,altincluded (resolve_img_node,static_render.rs:4436-4485). The fallback in 3.2.1 covers only an image that fails to load. - Tables lose structure. Every cell in a row gets the same width (
StaticNode.qml:1092). Only rows insidetable,theadandtbodyare drawn, so a<caption>'s text is not shown (collect_table_rows,static_render.rs:5058).thcells are bold, but nothing links a cell to its header. - Hidden text is dropped. Text that CSS hides or moves off screen is removed, including the "visually hidden" text and skip links that sites write for screen reader users (section 7.2.3).
- No reading view. There is no mode that shows the page's text in one column with the reader's own font, size and colours.
3.3 The gateway
The gateway serves pages to ordinary web browsers (section 8). The visitor's own browser draws the HTML, so its zoom, text size, dark mode, high contrast, reading mode, keyboard navigation and screen reader support apply to the page as they would on any static site. How well they work then depends on the page. We have not tested them on gateway pages.
3.3.1 What sanitising keeps
The gateway's HTML sanitiser removes attributes by a short block list, not an allow list. It removes on* handlers, the popover and command attributes that could cover its banner, srcdoc, ping, formaction and action, and inert or hidden on html and body (isForbiddenAttr and the attribute loop, sanitize.mjs:89-100, :1673-1684). Everything else passes through.
A test page run through sanitizeHtml in subdomain mode on 27 November 2026 came out with all of these unchanged:
| Kept | Examples |
|---|---|
| Language | lang and dir on html (carried to the page the gateway writes, sanitize.mjs:1718, :1769), lang on any element |
| Images | alt, title |
| ARIA | role, aria-label, aria-current, aria-hidden, aria-describedby, aria-expanded, aria-live |
| Focus | tabindex |
| Tables | <caption>, scope on th, headers on td |
| Labels and landmarks | <label for>, nav, main, skip links to #id |
Inline SVG keeps role, tabindex, lang, title, desc and every aria-* attribute (SVG_ALLOWED_TAGS, SVG_ALLOWED_ATTRS, sanitize.mjs:876-909, :1152). The gateway's own "No such page" page sets lang="en" and a main landmark (sanitize.mjs:1786, :1795).
This is a property of how the sanitiser is written, not a tested promise. The gateway's tests (test/sanitize.test.mjs) do not check any accessibility attribute. Section 3.5 plans a rule and a test.
3.3.2 The banner
The gateway puts one banner at the top of every page: the name, whether it was verified, and the links Open in LNS Browser and Report abuse (buildHeaderBar, sanitize.mjs:1288-1320). For accessibility:
- It is the first thing in
body, adivwithrole="banner", so it is a landmark and comes first in Tab order. - It holds two links and no
tabindex, so it does not trap focus. - Contrast is high. Text is
#e6edf3on#11161f(15.3:1). The links are#93c5fd(10.1:1) and#fca5a5(9.6:1) on the same background. - The spacer that pushes the page down is
aria-hidden.
Problems:
- Focus ring, probably removed. Every banner element carries
all: initial !importantinline, so the page cannot restyle it (sanitize.mjs:1241-1257). By the CSS cascade this also resetsoutline, which would hide the browser's focus ring on the banner links. Not yet checked in a browser. - Fixed text size. The banner text is set at 12 pixels. It grows with browser zoom; a setting that changes only the default text size may leave it small. Not tested.
- It can cover the page. The banner is fixed to the top and wraps onto more lines on a narrow or zoomed window, but the spacer under it is always 34 pixels. When it wraps, it covers the top of the page, and when scrolling it can cover a focused link.
- Links are not underlined. They are told apart from the text by colour only.
- A second banner landmark. A page with its own top-level
headerthen has two.
3.4 Content profile and authoring
The Static Profile (section 7) already includes most of the HTML that makes a page accessible:
- headings
h1toh6, lists (ul,ol,li,dl), and tables withthheader cells; - landmark elements:
header,nav,main,section,article,aside,footer; figureandfigcaption, anddetailsandsummaryfor content that opens and closes without a script;altonimg,langonhtml, andaria-labelon any element (section 7.2.1).
Missing from the profile: role, every aria-* attribute except aria-label, <caption>, scope, headers and colspan, and tabindex. label is ignored, with its text kept (section 7.2.2). Skip links do not work in the Names Browser for two reasons: hidden boxes are dropped (section 7.2.3), and a link to a fragment only, such as #main, is removed (section 7.10.2). All of these work at the gateway.
So a page written for both clients can be accessible at the gateway today, and will gain in the Names Browser as the work in 3.5 lands, with no change to the page.
3.4.1 What publishers should do
A publisher SHOULD give every img an alt that says what the image shows or does, and alt="" for an image that is only decoration. An svg that carries meaning SHOULD have an aria-label.
A publisher SHOULD set lang on html.
A publisher SHOULD use headings in order: one h1, then h2, then h3, without skipping a level, and SHOULD NOT pick a heading level for its size.
Text SHOULD have a contrast of at least 4.5:1 with its background, and large text at least 3:1, in both the light and the dark colours.
A publisher SHOULD NOT put text in images. Use real text styled with CSS.
Link text SHOULD make sense on its own, such as "Opening hours", not "Click here".
A data table SHOULD have header cells (th), and SHOULD NOT be used for layout.
Also: do not rely on colour alone to show meaning; keep the page readable when zoomed to 200%; and test the page with prefers-color-scheme: dark, because both clients use it (section 7.10.2).
3.5 Plan
Planned, not normative. None of this is built. The MUSTs below are what we intend to require once code enforces them. The list is ordered by impact: the first item blocks the most people today.
| # | Change | Where |
|---|---|---|
| 1 | Keyboard. A client MUST let the user reach every link, summary and control with Tab and Shift + Tab, in reading order, and activate it with Enter (Space for a control). Focus MUST show a clear focus ring that the page cannot hide. The page MUST scroll with the arrow keys, Page Up, Page Down, Space, Home and End. | Names Browser |
| 2 | Accessibility tree. A client MUST expose page content to the operating system's accessibility API: text, headings with their level, links with their text, images with their alt, lists, tables with header cells, and the page language. In Qt this means setting Accessible.role and Accessible.name from the render tree's tag, alt and aria-label. Visually hidden text would then go into this tree instead of being dropped. | Names Browser |
| 3 | Low vision. A client MUST follow the system text size and the system's high-contrast and reduced-motion settings, and MUST answer prefers-contrast and prefers-reduced-motion queries. It SHOULD allow zoom past 200%, remember zoom per site, and let the user select and copy page text. Alt text SHOULD be drawn for every image that is not shown, including refused ones. | Names Browser |
| 4 | Reading view. A client SHOULD offer a reading view: the page's headings, text, lists, images and links in one column, with the reader's own font, size, spacing and colours, and the page's styles turned off. | Names Browser |
| 5 | Gateway rules. The gateway MUST keep alt, lang, title, role, tabindex, aria-*, label, caption, scope and headers, with a test for each. Its banner MUST stay accessible: a visible focus ring, text that grows with the user's settings, a spacer as tall as the banner, underlined links, and a labelled region rather than a second banner landmark. | Gateway |
| 6 | Publisher warnings. lns publish SHOULD warn about an img with no alt, a page with no lang, no h1 or a skipped heading level, a link with no text, and low text contrast where it can tell. It already warns about content the browser strips, and --strict turns warnings into errors (inspectContentForBrowserWarnings and checkSiteFolder in single-publish.mjs). | lns publish |
| 7 | Profile extensions. Add role, aria-labelledby, aria-describedby, aria-hidden and aria-current, <caption>, scope, headers and colspan, and same-page links so that skip links work. Each one only once the Names Browser uses it. | Profile (section 7) |
| 8 | Testing. Each release: an automated accessibility check of the gateway's output and of this specification's own pages; a keyboard-only pass of the Names Browser and the gateway; a screen reader pass with VoiceOver on macOS and Orca on Linux; and a low-vision pass at 200% zoom, in dark mode and in Chrome's Reading mode. Results go in section 11. | All |
3.6 Known gaps
The Names Browser does not yet support screen readers or keyboard-only use. Its QML sets no accessibility roles or names, and gives no Tab path to links or buttons, no focus ring on them, and no keyboard scrolling (3.2.2). Its zoom and dark mode help people with low vision, but page text ignores the system text size and there is no reading view.
Use the gateway for now. At <name>.lnsweb.online the visitor's own browser and assistive technology do the work, and the sanitiser keeps the page's accessibility markup. The banner probably hides the focus ring on its links and can cover the top of the page when it wraps (3.3.2).
Not tested. Everything in this section comes from reading the code and from one sanitiser run. No screen reader, keyboard-only or reading-mode test has been done in the running apps. No accessibility check runs in any test suite, and lns publish does not check accessibility.
Accessibility depends on the page. No client can add alt text, headings or contrast that a publisher left out. The advice in 3.4.1 is not checked by any tool yet.