Public: anyone can read this; the crew can change it.
A live region marked `data-live-hold` is not swapped while the reader is scrolled into it; the client hands the fresh markup to the page instead #6693
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part 2 of 3 re-planned from #5849. Today
src/web/client.ts's region refresh replaces a region's innerHTML whenever its fragment changes, which moves what you are reading.Done when:
data-live-holdwhose top is above the viewport top (the reader has scrolled into it) is not swapped. The client dispatches a bubblingforge:heldCustomEvent on the region withdetail.html, the fresh region's markup.forge:swappedevent, same etag handling.holdRegion(region)or similar), and a test intest/live-hold.test.tsevaluates the client script against a minimal fakedocument/window(no new dependency) and checks both branches. That test fails without the change.Files: src/web/client.ts, test/live-hold.test.ts