VARIANT A
A clickable div
A generic element, with no declared role and no tabindex.
<div id="command">…</div>Try variant A (French) ↗Open experiment · HTML / ARIA
Three ways to write “Add to cart”. One action. What changes when you choose a different HTML element?
Same appearance, different HTML
An English guide to the original experiment. The isolated variants and archived observations remain in French. “Ajouter au panier” means “Add to cart”; “Voir le produit” means “View product”; “Vider le panier” means “Empty cart”. This guide introduces no new measurement.
01 / The experiment
Every page starts with an empty cart. The environment, wording, styling and click handler are shared. Only the control element and its role change. Variants A and B are deliberately incomplete examples.
VARIANT A
A generic element, with no declared role and no tabindex.
<div id="command">…</div>Try variant A (French) ↗VARIANT B
The same div with role="button". No keyboard behaviour is added.
<div role="button">…</div>Try variant B (French) ↗VARIANT C
An HTML element designed for commands, with type="button".
<button type="button">…</button>Try variant C (French) ↗Simplified excerpts. The shared script listens for click and increments the counter. It does not manage keydown, keyup or focus.
02 / Check for yourself
Open each isolated variant and enter the document from the address bar. Do not use the mouse to reach the control during a keyboard trial. On Safari/macOS, enable full keyboard navigation before comparing.
03 / Evidence and scope
The French results page displays the archived observations and their environment. Keyboard checks and Playwright ARIA snapshots are distinct from screen-reader or independent AI-agent trials.
locator.ariaSnapshot() reports roles, names and states according to Playwright. It is neither a complete native accessibility-tree capture nor a screen-reader transcript. Matching snapshots do not establish matching behaviour.
VoiceOver / Safari, NVDA / Firefox and independent agent trials remain untested in the published archive. A deterministic Playwright script is not an AI agent. This experiment does not establish whole-site accessibility, SEO rankings or AI citation performance.
An open question
This experiment provides a test environment. Without independent agent trials, it does not answer whether an agent can succeed where keyboard navigation fails.