LNS web Draft · 27 November 2026

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:

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

FeatureWhat this client doesWhere
ZoomCtrl + 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 modePages 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 sizeThe browser's own controls scale their text by Basecamp's theme scale.Main.qml:143 px()
Keyboard shortcutsCtrl + 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 pageCtrl + F opens a find bar with a text field.Main.qml:4042-4048, :4469
HeadingsThe 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 imagesWhen 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
MotionPage 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

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:

KeptExamples
Languagelang and dir on html (carried to the page the gateway writes, sanitize.mjs:1718, :1769), lang on any element
Imagesalt, title
ARIArole, aria-label, aria-current, aria-hidden, aria-describedby, aria-expanded, aria-live
Focustabindex
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:

Problems:

3.4 Content profile and authoring

The Static Profile (section 7) already includes most of the HTML that makes a page accessible:

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.

Advice only. No client checks these today. The thresholds are WCAG 2.2 Level AA's.

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.

#ChangeWhere
1Keyboard. 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
2Accessibility 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
3Low 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
4Reading 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
5Gateway 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
6Publisher 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
7Profile 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)
8Testing. 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.