One line per change to a draft or post, with who, when and size, and a way to compare or restore.
<section class="cap-hist" data-cap="history-list" id="hist-main" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-picked="0" aria-labelledby="hist-main-h">
<h3 class="cap-sr-only" id="hist-main-h">History of Spring update: what changed and why</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-main-h" data-cap-primary>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-31" data-at="2026-10-02T14:52:00Z" data-words="1954" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-31" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-31-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-31" aria-describedby="hist-main-v-31-w hist-main-v-31-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-main-v-31-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+42 words</span></span>
<span class="cap-row-meta" id="hist-main-v-31-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="publish" data-id="v-30" data-at="2026-10-02T14:45:00Z" data-words="1912" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-30" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:45 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-30-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-30" aria-describedby="hist-main-v-30-d hist-main-v-30-w hist-main-v-30-t" title="Published the reading list">Published the reading list</a></div>
<p class="cap-row-detail" id="hist-main-v-30-d">Published to <span class="cap-hist-dest"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Live</span> example.com</span> <span class="cap-hist-dest"><span class="cap-status" data-tone="crit"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M5 1h6l4 4v6l-4 4H5l-4-4V5zM7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z"/></svg>Failed</span> Example Co newsletter</span></p>
<span class="cap-hist-delta" id="hist-main-v-30-w" data-sign="zero"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 6h10M3 10h10"/></svg><span>no change in length</span></span>
<span class="cap-row-meta" id="hist-main-v-30-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:45:00Z">15 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:45:00Z">Oct 2, 2:45 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-30">Restore<span class="cap-sr-only"> the version from Oct 2, 2:45 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="run">
<span class="cap-hist-pick"></span>
<span class="cap-hist-who" id="hist-main-run-v-29-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><button type="button" aria-expanded="false" aria-controls="hist-main-run-v-29-rows" aria-describedby="hist-main-run-v-29-d hist-main-run-v-29-w hist-main-run-v-29-t">12 autosaves</button></div>
<p class="cap-row-detail" id="hist-main-run-v-29-d">2:02 PM to 2:40 PM UTC</p>
<span class="cap-hist-delta" id="hist-main-run-v-29-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+58 words</span></span>
<span class="cap-row-meta" id="hist-main-run-v-29-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:40:00Z">20 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:40:00Z">Oct 2, 2:40 PM UTC</time></span><span class="cap-row-chevron" aria-hidden="true"></span></span>
<div class="cap-row-actions"></div>
</li>
<li class="cap-hist-region" id="hist-main-run-v-29-rows" hidden>
<ul role="list" aria-label="12 autosaves">
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-29" data-at="2026-10-02T14:40:00Z" data-words="1912" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-29" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:40 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-29-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-29" aria-describedby="hist-main-v-29-d hist-main-v-29-w hist-main-v-29-t" title="Autosaved after a pause">Autosaved after a pause</a></div>
<p class="cap-row-detail" id="hist-main-v-29-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-29-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+4 words</span></span>
<span class="cap-row-meta" id="hist-main-v-29-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:40:00Z">20 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:40:00Z">Oct 2, 2:40 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-29">Restore<span class="cap-sr-only"> the version from Oct 2, 2:40 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-28" data-at="2026-10-02T14:38:00Z" data-words="1908" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-28" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:38 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-28-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-28" aria-describedby="hist-main-v-28-d hist-main-v-28-w hist-main-v-28-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-28-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-28-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+5 words</span></span>
<span class="cap-row-meta" id="hist-main-v-28-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:38:00Z">22 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:38:00Z">Oct 2, 2:38 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-28">Restore<span class="cap-sr-only"> the version from Oct 2, 2:38 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-27" data-at="2026-10-02T14:36:00Z" data-words="1903" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-27" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:36 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-27-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-27" aria-describedby="hist-main-v-27-d hist-main-v-27-w hist-main-v-27-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-27-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-27-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+8 words</span></span>
<span class="cap-row-meta" id="hist-main-v-27-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:36:00Z">24 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:36:00Z">Oct 2, 2:36 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-27">Restore<span class="cap-sr-only"> the version from Oct 2, 2:36 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-26" data-at="2026-10-02T14:33:00Z" data-words="1895" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-26" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:33 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-26-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-26" aria-describedby="hist-main-v-26-d hist-main-v-26-w hist-main-v-26-t" title="Autosaved after a pause">Autosaved after a pause</a></div>
<p class="cap-row-detail" id="hist-main-v-26-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-26-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+5 words</span></span>
<span class="cap-row-meta" id="hist-main-v-26-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:33:00Z">27 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:33:00Z">Oct 2, 2:33 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-26">Restore<span class="cap-sr-only"> the version from Oct 2, 2:33 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-25" data-at="2026-10-02T14:29:00Z" data-words="1890" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-25" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:29 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-25-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-25" aria-describedby="hist-main-v-25-d hist-main-v-25-w hist-main-v-25-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-25-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-25-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+6 words</span></span>
<span class="cap-row-meta" id="hist-main-v-25-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:29:00Z">31 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:29:00Z">Oct 2, 2:29 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-25">Restore<span class="cap-sr-only"> the version from Oct 2, 2:29 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-24" data-at="2026-10-02T14:25:00Z" data-words="1884" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-24" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:25 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-24-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-24" aria-describedby="hist-main-v-24-d hist-main-v-24-w hist-main-v-24-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-24-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-24-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+4 words</span></span>
<span class="cap-row-meta" id="hist-main-v-24-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:25:00Z">35 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:25:00Z">Oct 2, 2:25 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-24">Restore<span class="cap-sr-only"> the version from Oct 2, 2:25 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-23" data-at="2026-10-02T14:21:00Z" data-words="1880" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-23" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:21 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-23-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-23" aria-describedby="hist-main-v-23-d hist-main-v-23-w hist-main-v-23-t" title="Autosaved after a pause">Autosaved after a pause</a></div>
<p class="cap-row-detail" id="hist-main-v-23-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-23-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+2 words</span></span>
<span class="cap-row-meta" id="hist-main-v-23-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:21:00Z">39 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:21:00Z">Oct 2, 2:21 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-23">Restore<span class="cap-sr-only"> the version from Oct 2, 2:21 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-22" data-at="2026-10-02T14:17:00Z" data-words="1878" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-22" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:17 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-22-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-22" aria-describedby="hist-main-v-22-d hist-main-v-22-w hist-main-v-22-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-22-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-22-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+7 words</span></span>
<span class="cap-row-meta" id="hist-main-v-22-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:17:00Z">43 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:17:00Z">Oct 2, 2:17 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-22">Restore<span class="cap-sr-only"> the version from Oct 2, 2:17 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-21" data-at="2026-10-02T14:13:00Z" data-words="1871" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-21" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:13 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-21-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-21" aria-describedby="hist-main-v-21-d hist-main-v-21-w hist-main-v-21-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-21-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-21-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+11 words</span></span>
<span class="cap-row-meta" id="hist-main-v-21-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:13:00Z">47 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:13:00Z">Oct 2, 2:13 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-21">Restore<span class="cap-sr-only"> the version from Oct 2, 2:13 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-20" data-at="2026-10-02T14:09:00Z" data-words="1860" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-20" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:09 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-20-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-20" aria-describedby="hist-main-v-20-d hist-main-v-20-w hist-main-v-20-t" title="Autosaved after a pause">Autosaved after a pause</a></div>
<p class="cap-row-detail" id="hist-main-v-20-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-20-w" data-sign="zero"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 6h10M3 10h10"/></svg><span>no change in length</span></span>
<span class="cap-row-meta" id="hist-main-v-20-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:09:00Z">51 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:09:00Z">Oct 2, 2:09 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-20">Restore<span class="cap-sr-only"> the version from Oct 2, 2:09 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-19" data-at="2026-10-02T14:05:00Z" data-words="1860" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-19" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:05 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-19-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-19" aria-describedby="hist-main-v-19-d hist-main-v-19-w hist-main-v-19-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-19-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-19-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+4 words</span></span>
<span class="cap-row-meta" id="hist-main-v-19-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:05:00Z">55 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:05:00Z">Oct 2, 2:05 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-19">Restore<span class="cap-sr-only"> the version from Oct 2, 2:05 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-18" data-at="2026-10-02T14:02:00Z" data-words="1856" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-18" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:02 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-18-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-18" aria-describedby="hist-main-v-18-d hist-main-v-18-w hist-main-v-18-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-main-v-18-d">Autosave</p>
<span class="cap-hist-delta" id="hist-main-v-18-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+2 words</span></span>
<span class="cap-row-meta" id="hist-main-v-18-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:02:00Z">58 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:02:00Z">Oct 2, 2:02 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-18">Restore<span class="cap-sr-only"> the version from Oct 2, 2:02 PM UTC by Alex Rivera</span></button></div>
</li>
</ul>
</li>
<li class="cap-row cap-hist-row" data-kind="named" data-id="v-17" data-at="2026-10-02T13:30:00Z" data-words="1854" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-17" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 1:30 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-main-v-17-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-17" aria-describedby="hist-main-v-17-d hist-main-v-17-w hist-main-v-17-t" title="Cut the introduction to two paragraphs">Cut the introduction to two paragraphs</a></div>
<p class="cap-row-detail" id="hist-main-v-17-d">Named version: <b>Before the rewrite</b></p>
<span class="cap-hist-delta" id="hist-main-v-17-w" data-sign="zero"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 6h10M3 10h10"/></svg><span>no change in length</span></span>
<span class="cap-row-meta" id="hist-main-v-17-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T13:30:00Z">1 hour ago</time><time class="cap-hist-exact" datetime="2026-10-02T13:30:00Z">Oct 2, 1:30 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-17">Restore<span class="cap-sr-only"> the version from Oct 2, 1:30 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-16" data-at="2026-10-01T16:10:00Z" data-words="1854" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-16" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-main-v-16-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-16" aria-describedby="hist-main-v-16-w hist-main-v-16-t" title="Cut the duplicate paragraph on the release schedule">Cut the duplicate paragraph on the release schedule</a></div>
<span class="cap-hist-delta" id="hist-main-v-16-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-main-v-16-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-16">Restore<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-15" data-at="2026-10-01T09:00:00Z" data-words="1884" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-15" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 9:00 AM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-main-v-15-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-15" aria-describedby="hist-main-v-15-w hist-main-v-15-t" title="Added the pricing decision section">Added the pricing decision section</a></div>
<span class="cap-hist-delta" id="hist-main-v-15-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+142 words</span></span>
<span class="cap-row-meta" id="hist-main-v-15-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T09:00:00Z">yesterday</time><time class="cap-hist-exact" datetime="2026-10-01T09:00:00Z">Oct 1, 9:00 AM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-15">Restore<span class="cap-sr-only"> the version from Oct 1, 9:00 AM UTC by Rosa Park</span></button></div>
</li>
</ul>
<div class="cap-hist-foot"><a class="cap-btn" data-variant="quiet" data-cap-part="older" href="?before=v-15">Load older versions</a></div>
</section>
Installation
// package.json: "capsomer": "github:DrDustinEdwards/capsomer#v0.152.2"
import "capsomer/tokens.css";
import "capsomer/base.css";
import "capsomer/history-list.css";
import { enhance } from "capsomer/behavior/history-list";
enhance();import "capsomer/tokens.css";
import "capsomer/history-list.css";
import { HistoryList } from "capsomer/react/history-list";Usage
<section class="cap-hist" data-cap="history-list" id="history" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" aria-labelledby="history-h">
<h2 id="history-h">History</h2>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<form id="history-compare" method="get" action="/posts/spring-update/compare" hidden></form>
<button type="submit" form="history-compare" class="cap-btn" data-variant="primary" data-cap-part="compare-submit">Compare 2 versions</button>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0" hidden>Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="history-h" data-cap-primary>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-31" data-at="2026-10-02T14:52:00Z" data-words="1954" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-31" form="history-compare" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="h-v-31-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name">Alex Rivera</span></span>
<div class="cap-row-title"><a href="?version=v-31" aria-describedby="h-v-31-w h-v-31-t" title="Added the 2019 annual report">Added the 2019 annual report</a></div>
<span class="cap-hist-delta" id="h-v-31-w" data-sign="plus"><svg aria-hidden="true">...</svg><span>+42 words</span></span>
<span class="cap-row-meta" id="h-v-31-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok">...Current</span></div>
</li>
<!-- a run of autosaves: a group line, then the lines it holds in a hidden region -->
<li class="cap-row cap-hist-row" data-kind="run">
...<div class="cap-row-title"><button type="button" aria-expanded="false" aria-controls="h-run-rows">12 autosaves</button></div>
<p class="cap-row-detail">2:02 PM to 2:40 PM UTC</p>...
</li>
<li class="cap-hist-region" id="h-run-rows" hidden><ul role="list" aria-label="12 autosaves">...lines...</ul></li>
</ul>
<div class="cap-hist-foot"><a class="cap-btn" data-variant="quiet" data-cap-part="older" href="?before=v-15">Load older versions</a></div>
</section><HistoryList entries={versions} labelledBy="history-h" user="Alex Rivera" compareBase="/posts/spring-update/compare"
onRestore={({ entry }) => addVersion(entry)} onUndoRestore={({ entry }) => removeVersion(entry)}
olderHref="?before=v-15" primary />Examples
A run of autosaves, open in place
<section class="cap-hist" data-cap="history-list" id="hist-open" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-picked="0" aria-labelledby="hist-open-h">
<h3 class="cap-sr-only" id="hist-open-h">History with an open run</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-open-h">
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-52" data-at="2026-10-02T14:52:00Z" data-words="1030" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-52" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-open-v-52-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-52" aria-describedby="hist-open-v-52-w hist-open-v-52-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-open-v-52-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+18 words</span></span>
<span class="cap-row-meta" id="hist-open-v-52-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="run">
<span class="cap-hist-pick"></span>
<span class="cap-hist-who" id="hist-open-run-v-51-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><button type="button" aria-expanded="true" aria-controls="hist-open-run-v-51-rows" aria-describedby="hist-open-run-v-51-d hist-open-run-v-51-w hist-open-run-v-51-t">4 autosaves</button></div>
<p class="cap-row-detail" id="hist-open-run-v-51-d">2:10 PM to 2:40 PM UTC</p>
<span class="cap-hist-delta" id="hist-open-run-v-51-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+40 words</span></span>
<span class="cap-row-meta" id="hist-open-run-v-51-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:40:00Z">20 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:40:00Z">Oct 2, 2:40 PM UTC</time></span><span class="cap-row-chevron" aria-hidden="true"></span></span>
<div class="cap-row-actions"></div>
</li>
<li class="cap-hist-region" id="hist-open-run-v-51-rows">
<ul role="list" aria-label="4 autosaves">
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-51" data-at="2026-10-02T14:40:00Z" data-words="1012" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-51" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:40 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-open-v-51-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-51" aria-describedby="hist-open-v-51-d hist-open-v-51-w hist-open-v-51-t" title="Autosaved after a pause">Autosaved after a pause</a></div>
<p class="cap-row-detail" id="hist-open-v-51-d">Autosave</p>
<span class="cap-hist-delta" id="hist-open-v-51-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+8 words</span></span>
<span class="cap-row-meta" id="hist-open-v-51-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:40:00Z">20 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:40:00Z">Oct 2, 2:40 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-51">Restore<span class="cap-sr-only"> the version from Oct 2, 2:40 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-50" data-at="2026-10-02T14:30:00Z" data-words="1004" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-50" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:30 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-open-v-50-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-50" aria-describedby="hist-open-v-50-d hist-open-v-50-w hist-open-v-50-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-open-v-50-d">Autosave</p>
<span class="cap-hist-delta" id="hist-open-v-50-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+14 words</span></span>
<span class="cap-row-meta" id="hist-open-v-50-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:30:00Z">30 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:30:00Z">Oct 2, 2:30 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-50">Restore<span class="cap-sr-only"> the version from Oct 2, 2:30 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-49" data-at="2026-10-02T14:20:00Z" data-words="990" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-49" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:20 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-open-v-49-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-49" aria-describedby="hist-open-v-49-d hist-open-v-49-w hist-open-v-49-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-open-v-49-d">Autosave</p>
<span class="cap-hist-delta" id="hist-open-v-49-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+12 words</span></span>
<span class="cap-row-meta" id="hist-open-v-49-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:20:00Z">40 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:20:00Z">Oct 2, 2:20 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-49">Restore<span class="cap-sr-only"> the version from Oct 2, 2:20 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="autosave" data-id="v-48" data-at="2026-10-02T14:10:00Z" data-words="978" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-48" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:10 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-open-v-48-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-48" aria-describedby="hist-open-v-48-d hist-open-v-48-w hist-open-v-48-t" title="Autosaved while typing">Autosaved while typing</a></div>
<p class="cap-row-detail" id="hist-open-v-48-d">Autosave</p>
<span class="cap-hist-delta" id="hist-open-v-48-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+6 words</span></span>
<span class="cap-row-meta" id="hist-open-v-48-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:10:00Z">50 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:10:00Z">Oct 2, 2:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-48">Restore<span class="cap-sr-only"> the version from Oct 2, 2:10 PM UTC by Alex Rivera</span></button></div>
</li>
</ul>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-47" data-at="2026-10-01T16:10:00Z" data-words="972" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-47" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-open-v-47-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-47" aria-describedby="hist-open-v-47-w hist-open-v-47-t" title="Cut the duplicate paragraph on the release schedule">Cut the duplicate paragraph on the release schedule</a></div>
<span class="cap-hist-delta" id="hist-open-v-47-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-open-v-47-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-47">Restore<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></button></div>
</li>
</ul>
</section>
Two versions picked: Compare is ready, the other boxes wait
<section class="cap-hist" data-cap="history-list" id="hist-two" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-picked="2" aria-labelledby="hist-two-h">
<h3 class="cap-sr-only" id="hist-two-h">History with two picked</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">2 versions picked. Older: Oct 1, 9:00 AM UTC. Newer: Oct 2, 1:30 PM UTC. The older is always first, whichever you picked first.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" href="/posts/spring-update/compare?from=v-58&to=v-60">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-two-h">
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-61" data-at="2026-10-02T14:52:00Z" data-words="1954" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-61" data-cap-part="pick" aria-disabled="true"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-two-v-61-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-61" aria-describedby="hist-two-v-61-w hist-two-v-61-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-two-v-61-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+42 words</span></span>
<span class="cap-row-meta" id="hist-two-v-61-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="named" data-id="v-60" data-at="2026-10-02T13:30:00Z" data-words="1912" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-60" data-cap-part="pick" checked><span class="cap-sr-only">Compare this version, Oct 2, 1:30 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-two-v-60-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-60" aria-describedby="hist-two-v-60-d hist-two-v-60-w hist-two-v-60-t" title="Cut the introduction to two paragraphs">Cut the introduction to two paragraphs</a></div>
<p class="cap-row-detail" id="hist-two-v-60-d">Named version: <b>Before the rewrite</b></p>
<span class="cap-hist-delta" id="hist-two-v-60-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+58 words</span></span>
<span class="cap-row-meta" id="hist-two-v-60-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T13:30:00Z">1 hour ago</time><time class="cap-hist-exact" datetime="2026-10-02T13:30:00Z">Oct 2, 1:30 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-60">Restore<span class="cap-sr-only"> the version from Oct 2, 1:30 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-59" data-at="2026-10-01T16:10:00Z" data-words="1854" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-59" data-cap-part="pick" aria-disabled="true"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-two-v-59-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-59" aria-describedby="hist-two-v-59-w hist-two-v-59-t" title="Cut the duplicate paragraph on the release schedule">Cut the duplicate paragraph on the release schedule</a></div>
<span class="cap-hist-delta" id="hist-two-v-59-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-two-v-59-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-59">Restore<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-58" data-at="2026-10-01T09:00:00Z" data-words="1884" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-58" data-cap-part="pick" checked><span class="cap-sr-only">Compare this version, Oct 1, 9:00 AM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-two-v-58-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-58" aria-describedby="hist-two-v-58-w hist-two-v-58-t" title="Added the pricing decision section">Added the pricing decision section</a></div>
<span class="cap-hist-delta" id="hist-two-v-58-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+142 words</span></span>
<span class="cap-row-meta" id="hist-two-v-58-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T09:00:00Z">yesterday</time><time class="cap-hist-exact" datetime="2026-10-01T09:00:00Z">Oct 1, 9:00 AM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-58">Restore<span class="cap-sr-only"> the version from Oct 1, 9:00 AM UTC by Rosa Park</span></button></div>
</li>
</ul>
</section>
After a restore: a new line on top, the earlier lines all still there
<section class="cap-hist" data-cap="history-list" id="hist-restored" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-picked="0" aria-labelledby="hist-restored-h">
<h3 class="cap-sr-only" id="hist-restored-h">History after a restore</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-restored-h">
<li class="cap-row cap-hist-row" data-kind="restore" data-id="v-41-r1" data-at="2026-10-02T14:58:00Z" data-words="1742" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-41-r1" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:58 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-restored-v-41-r1-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-41-r1" aria-describedby="hist-restored-v-41-r1-d hist-restored-v-41-r1-w hist-restored-v-41-r1-t" title="Restored the version from Sep 28, 9:15 AM UTC">Restored the version from Sep 28, 9:15 AM UTC</a></div>
<p class="cap-row-detail" id="hist-restored-v-41-r1-d">Restored from Sep 28, 9:15 AM UTC</p>
<span class="cap-hist-delta" id="hist-restored-v-41-r1-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−212 words</span></span>
<span class="cap-row-meta" id="hist-restored-v-41-r1-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:58:00Z">2 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:58:00Z">Oct 2, 2:58 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-41" data-at="2026-10-02T14:30:00Z" data-words="1954" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-41" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:30 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-restored-v-41-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-41" aria-describedby="hist-restored-v-41-w hist-restored-v-41-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-restored-v-41-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+212 words</span></span>
<span class="cap-row-meta" id="hist-restored-v-41-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:30:00Z">30 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:30:00Z">Oct 2, 2:30 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-41">Restore<span class="cap-sr-only"> the version from Oct 2, 2:30 PM UTC by Alex Rivera</span></button></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-13" data-at="2026-09-28T09:15:00Z" data-words="1742" data-who="Alex Rivera">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-13" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Sep 28, 9:15 AM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-restored-v-13-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-13" aria-describedby="hist-restored-v-13-w hist-restored-v-13-t" title="Drafted the section on pricing">Drafted the section on pricing</a></div>
<span class="cap-hist-delta" id="hist-restored-v-13-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+1742 words</span></span>
<span class="cap-row-meta" id="hist-restored-v-13-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-09-28T09:15:00Z">4 days ago</time><time class="cap-hist-exact" datetime="2026-09-28T09:15:00Z">Sep 28, 9:15 AM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-13">Restore<span class="cap-sr-only"> the version from Sep 28, 9:15 AM UTC by Alex Rivera</span></button></div>
</li>
</ul>
</section>
Hover on a line
<section class="cap-hist" data-cap="history-list" id="hist-force" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-picked="0" aria-labelledby="hist-force-h">
<h3 class="cap-sr-only" id="hist-force-h">History with a hovered line</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-force-h">
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-71" data-at="2026-10-02T14:52:00Z" data-words="1954" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-71" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-force-v-71-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-71" aria-describedby="hist-force-v-71-w hist-force-v-71-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-force-v-71-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+42 words</span></span>
<span class="cap-row-meta" id="hist-force-v-71-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-70" data-at="2026-10-01T16:10:00Z" data-words="1912" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-70" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-force-v-70-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-70" aria-describedby="hist-force-v-70-w hist-force-v-70-t" title="Cut the duplicate paragraph">Cut the duplicate paragraph</a></div>
<span class="cap-hist-delta" id="hist-force-v-70-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-force-v-70-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-70">Restore<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></button></div>
</li>
</ul>
</section>
Load into editor
<section class="cap-hist" data-cap="history-list" id="hist-load" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-load-href="/posts/spring-update/edit?load=" data-compare-href="/posts/spring-update/compare" data-picked="0" aria-labelledby="hist-load-h">
<h3 class="cap-sr-only" id="hist-load-h">History that loads a version into the editor</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-load-h">
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-71" data-at="2026-10-02T14:52:00Z" data-words="1954" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-71" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-load-v-71-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-71" aria-describedby="hist-load-v-71-w hist-load-v-71-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-load-v-71-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+42 words</span></span>
<span class="cap-row-meta" id="hist-load-v-71-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-70" data-at="2026-10-01T16:10:00Z" data-words="1912" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-70" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-load-v-70-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-70" aria-describedby="hist-load-v-70-w hist-load-v-70-t" title="Cut the duplicate paragraph">Cut the duplicate paragraph</a></div>
<span class="cap-hist-delta" id="hist-load-v-70-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-load-v-70-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><a class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="load" data-version="v-70" href="/posts/spring-update/edit?load=v-70">Load into editor<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></a></div>
</li>
</ul>
</section>
Read-only, with no word counts
<section class="cap-hist" data-cap="history-list" id="hist-ro" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-readonly data-compare-href="/site/revisions/compare" data-picked="0" aria-labelledby="hist-ro-h">
<h3 class="cap-sr-only" id="hist-ro-h">Revisions of the site settings</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-ro-h">
<li class="cap-row cap-hist-row" data-kind="edit" data-id="r-9" data-at="2026-10-02T14:52:00Z" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="r-9" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-ro-r-9-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=r-9" aria-describedby="hist-ro-r-9-t" title="Turned the guestbook off">Turned the guestbook off</a></div>
<span class="cap-hist-delta" data-sign="none" aria-hidden="true"></span>
<span class="cap-row-meta" id="hist-ro-r-9-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="r-8" data-at="2026-10-01T16:10:00Z" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="r-8" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-ro-r-8-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=r-8" aria-describedby="hist-ro-r-8-t" title="Changed the footer links">Changed the footer links</a></div>
<span class="cap-hist-delta" data-sign="none" aria-hidden="true"></span>
<span class="cap-row-meta" id="hist-ro-r-8-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"></div>
</li>
</ul>
<div class="cap-hist-foot"><a class="cap-btn" data-variant="quiet" data-cap-part="older" href="?before=r-8">Load older versions</a></div>
</section>
Empty
<div class="cap-hist" data-cap="history-list" id="hist-empty" aria-labelledby="hist-empty-h">
<h3 class="cap-sr-only" id="hist-empty-h">History of a new post</h3>
<div class="cap-empty" data-kind="nothing-yet" id="hist-empty-state">
<div class="cap-empty-header">
<p class="cap-empty-title">No versions yet</p>
<p class="cap-empty-text">The first save of this post makes the first version.</p>
</div>
</div>
</div>
Comfortable density
<section class="cap-hist" data-cap="history-list" id="hist-comfy" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-density="comfortable" data-picked="0" aria-labelledby="hist-comfy-h">
<h3 class="cap-sr-only" id="hist-comfy-h">History, comfortable</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-comfy-h">
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-71" data-at="2026-10-02T14:52:00Z" data-words="1954" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-71" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-comfy-v-71-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-71" aria-describedby="hist-comfy-v-71-w hist-comfy-v-71-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-comfy-v-71-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+42 words</span></span>
<span class="cap-row-meta" id="hist-comfy-v-71-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-70" data-at="2026-10-01T16:10:00Z" data-words="1912" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-70" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-comfy-v-70-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-70" aria-describedby="hist-comfy-v-70-w hist-comfy-v-70-t" title="Cut the duplicate paragraph">Cut the duplicate paragraph</a></div>
<span class="cap-hist-delta" id="hist-comfy-v-70-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-comfy-v-70-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-70">Restore<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></button></div>
</li>
</ul>
</section>
Load older, taken over by the page's own script (it cancels the event and adds the next page)
<section class="cap-hist" data-cap="history-list" id="hist-pages" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-picked="0" aria-labelledby="hist-pages-h">
<h3 class="cap-sr-only" id="hist-pages-h">History with a second page</h3>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-pages-h">
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-91" data-at="2026-10-02T14:52:00Z" data-words="1030" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-91" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-pages-v-91-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-91" aria-describedby="hist-pages-v-91-w hist-pages-v-91-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-pages-v-91-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+30 words</span></span>
<span class="cap-row-meta" id="hist-pages-v-91-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-90" data-at="2026-10-01T16:10:00Z" data-words="1000" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-90" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-pages-v-90-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-90" aria-describedby="hist-pages-v-90-w hist-pages-v-90-t" title="Cut the duplicate paragraph">Cut the duplicate paragraph</a></div>
<span class="cap-hist-delta" id="hist-pages-v-90-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-pages-v-90-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-90">Restore<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></button></div>
</li>
</ul>
<div class="cap-hist-foot"><a class="cap-btn" data-variant="quiet" data-cap-part="older" href="?before=v-90">Load older versions</a></div>
</section>
The React wrapper: the same contract, with the app's part written out
<div id="react-history"></div>
Where results and Undo are said
<div class="cap-message" data-cap="message" role="status" aria-label="Results and failures" aria-atomic="false" id="hist-results"></div>
Phone width: the line wraps, the action goes underneath
<main class="specimen-page">
<h1 id="phone-h">History</h1>
<section class="cap-hist" data-cap="history-list" id="hist-phone" data-cap-now="2026-10-02T15:00:00Z" data-user="Alex Rivera" data-compare-href="/posts/spring-update/compare" data-picked="0" aria-labelledby="hist-phone-h">
<h2 class="cap-sr-only" id="hist-phone-h">History on a phone</h2>
<div class="cap-hist-bar">
<p class="cap-hist-picked" role="status" data-cap-part="picked">Pick two versions to compare.</p>
<a class="cap-btn" data-variant="primary" data-cap-part="compare" role="link" aria-disabled="true" tabindex="0">Compare 2 versions</a>
</div>
<ul class="cap-rows cap-hist-list" role="list" aria-labelledby="hist-phone-h" data-cap-primary>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-71" data-at="2026-10-02T14:52:00Z" data-words="1954" data-who="Alex Rivera" data-current>
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-71" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 2, 2:52 PM UTC, by Alex Rivera</span></label></span>
<span class="cap-hist-who" id="hist-phone-v-71-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">AR</span></span><span class="cap-hist-name"><span>Alex Rivera</span></span></span>
<div class="cap-row-title"><a href="?version=v-71" aria-describedby="hist-phone-v-71-w hist-phone-v-71-t" title="Added the 2019 annual report and its caveat">Added the 2019 annual report and its caveat</a></div>
<span class="cap-hist-delta" id="hist-phone-v-71-w" data-sign="plus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 3v10M3 8h10"/></svg><span>+42 words</span></span>
<span class="cap-row-meta" id="hist-phone-v-71-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-02T14:52:00Z">8 minutes ago</time><time class="cap-hist-exact" datetime="2026-10-02T14:52:00Z">Oct 2, 2:52 PM UTC</time></span></span>
<div class="cap-row-actions"><span class="cap-status" data-tone="ok"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"/></svg>Current</span></div>
</li>
<li class="cap-row cap-hist-row" data-kind="edit" data-id="v-70" data-at="2026-10-01T16:10:00Z" data-words="1912" data-who="Rosa Park">
<span class="cap-hist-pick"><label class="cap-check"><input type="checkbox" name="compare" value="v-70" data-cap-part="pick"><span class="cap-sr-only">Compare this version, Oct 1, 4:10 PM UTC, by Rosa Park</span></label></span>
<span class="cap-hist-who" id="hist-phone-v-70-who"><span class="cap-avatar" data-size="sm" aria-hidden="true"><span class="cap-avatar-fallback">RP</span></span><span class="cap-hist-name"><span>Rosa Park</span></span></span>
<div class="cap-row-title"><a href="?version=v-70" aria-describedby="hist-phone-v-70-w hist-phone-v-70-t" title="Cut the duplicate paragraph">Cut the duplicate paragraph</a></div>
<span class="cap-hist-delta" id="hist-phone-v-70-w" data-sign="minus"><svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true" focusable="false"><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M3 8h10"/></svg><span>−30 words</span></span>
<span class="cap-row-meta" id="hist-phone-v-70-t"><span class="cap-hist-when"><time class="cap-time" data-cap="time" datetime="2026-10-01T16:10:00Z">22 hours ago</time><time class="cap-hist-exact" datetime="2026-10-01T16:10:00Z">Oct 1, 4:10 PM UTC</time></span></span>
<div class="cap-row-actions"><button type="button" class="cap-btn" data-variant="quiet" data-size="sm" data-cap-part="restore" data-version="v-70">Restore<span class="cap-sr-only"> the version from Oct 1, 4:10 PM UTC by Rosa Park</span></button></div>
</li>
</ul>
</section>
</main>
API reference
HistoryList
| Prop | Type | Required | Does |
|---|---|---|---|
entries | HistoryEntry[] | Yes | Newest first. The first is the current version. |
labelledBy | string | The list's name: the heading id that names it (preferred), or a label. | |
label | string | ||
user | string | Yes | Who is restoring: the new line is theirs. |
compareBase | string | The compare view's path; ?from=<older>&to=<newer> is added. Before the script runs the pick boxes post to it as a plain GET form (?compare=<id>&compare=<id>); the compare view reads either with comparePicks. | |
defaultPicked | string[] | The versions picked when the page is drawn (the compare view's own pair, read from its address), so a page that shows a comparison keeps the two ticked. | |
versionHref | (id: string) => string | Where a line's title goes (the version's own page). | |
loadHref | (id: string) => string | Load-into-editor mode: an earlier line's action is a "Load into editor" link to this address (works without script) in place of Restore. Nothing is added to the history; the app's save makes the version. onLoad loads the text in place and stops the navigation. | |
onLoad | (entry: HistoryEntry) => void | ||
readOnly | boolean | A read-only history: an earlier line has no action, neither Restore nor Load. Entries may leave out words; such a line shows no size change. | |
onRestore | (e: RestoreEvent) => void | Promise<void> | Restoring adds a new line on top: add entry to entries (and save it). The message with Undo is said by the list. | |
onUndoRestore | (e: RestoreEvent) => void | Promise<void> | Undo of that restore: remove entry again. | |
now | number | A fixed "now" for a report or a test. | |
olderHref | string | More lines exist before the last: an address (a link that works without script) and/or a handler (the app fetches the page and adds it to entries). | |
onLoadOlder | () => void | ||
loadingOlder | boolean | ||
primary | boolean | The page's main list: j and k work on it before focus is inside it. | |
empty | ReactNode | Shown in place of the list when there are no versions. |
Functions
| Function | Signature | Does |
|---|---|---|
attachListKeys | (list: HTMLElement): () => void | j and k between the lines' titles, row-list's movement (moveRowFocus) with its isTypingKey check. Attached once per list. |
restoreVersion | (root: HTMLElement, id: string): HTMLLIElement | null | Restores a version: adds a new line on top, makes it current, says so with Undo. Nothing is overwritten; the line restored from stays. Fires cap:history-restored (and cap:history-unrestored on Undo) on the root, so the app can save or undo the new version on its server. Returns the new line, or null when the id is unknown. |
appendEntries | (root: HTMLElement, entries: readonly HistoryEntry[], opts?: { more?: boolean | undefined; }): void | Adds older lines at the foot (a page of history the app fetched). more: false removes the Load older control, because there is nothing older. A page should start on a line that is not an autosave, or a run is split in two at the join. |
syncPicks | (root: HTMLElement, blocked?: boolean): string[] | Reads the picks from the checkboxes, applies the "at most two" rule to the rest of them, and says what is picked. blocked says a third pick was just refused. |
enhance | (root?: ParentNode): () => void | Attaches to every [data-cap="history-list"] under root not yet attached: j and k on its list, the group lines that open, the picks, Restore and Load older. Returns a function that detaches them. |
Parts and data attributes
| Class | Is |
|---|---|
.cap-hist | the root |
.cap-hist-bar | a part |
.cap-hist-delta | a part |
.cap-hist-dest | a part |
.cap-hist-exact | a part |
.cap-hist-foot | a part |
.cap-hist-list | a part |
.cap-hist-name | a part |
.cap-hist-pick | a part |
.cap-hist-picked | a part |
.cap-hist-region | a part |
.cap-hist-row | a part |
.cap-hist-when | a part |
.cap-hist-who | a part |
| Attribute | Values |
|---|---|
data-kind | run |
| State | Read from |
|---|---|
:empty | the platform |
[aria-disabled="true"] | an attribute |
[hidden] | an attribute |
Accessibility
| Key | Does |
|---|---|
| Tab | Moves through the lines in order: each line's pick box, its title link, its Restore button; then Compare; then Load older |
j | Moves focus to the next line's title (to the first line from outside the list) |
k | Moves focus to the previous line's title |
| Enter on a title | Opens that version |
| Enter or Space on a run's button | Opens or closes the autosaves it holds; aria-expanded follows |
| Space on a pick box | Picks or unpicks that version; a third pick is refused and said |
| Enter on Load into editor | Follows the link to the editor, or asks the app to load the text in place (cap:history-load) |
| Enter or Space on Restore | Restores that version as a new line on top, and says so with Undo; focus stays on the button |
z | Undoes the last restore (the message region's key); focus returns to the Restore button |
| Enter on Compare 2 versions | Opens the compare view, older first |
| Enter on Load older versions | Follows the link, or asks the app to add the next page |
j, k and z are single keys: they stay quiet in a text field and when single-key shortcuts are off (the shortcuts switch sets data-cap-single-keys="off" on <html>; z is the message region's and follows it too).
- A
ulwithrole="list", named by the heading above it. The pick bar's status line isrole="status", polite: each pick, a refusal and the ordered pair are announced without moving focus. - Each pick box and each Restore button names the version by its time and author, so a list of identical controls is not read as identical.
- The avatar is
aria-hiddenbecause the name is text beside it. - The sign is text, so a screen reader hears "minus 30 words"; the drawn mark is hidden.
- Every status (Current, Live, Failed, Queued) is a shape, a word and a color.
- Text 4.5:1 on the surface, the raised group tone and the focused row tone; the pick box's edge 3:1 (the field component's).
- Forced colors: the marks and the bar's edge use CanvasText.